diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | URPM.xs | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- Bump static buffer size when generating synthesys + Version 5.125 - 23 October 2021 - Further prevent SRPM to conflicts with its own build deps with rpm-4.16+ @@ -2177,7 +2177,7 @@ Pkg_build_info(pkg, fileno, provides_files=NULL, recommends=0) int recommends CODE: if (pkg->info) { - char buff[65536*2]; + char buff[65536*3]; UV size; /* info line should be the last to be written */ @@ -2189,6 +2189,8 @@ Pkg_build_info(pkg, fileno, provides_files=NULL, recommends=0) size += snprintf(buff+size, sizeof(buff)-size, "@%s\n", provides_files); } write_nocheck(fileno, buff, size); + } else { + fprintf(stderr, "buffer overflow: %d < %d for provides\n", size, sizeof(buff)); } } if (pkg->conflicts && *pkg->conflicts) { |