/[packages]/updates/infra_2/perl-URPM/current/SOURCES/URPM.xs-buffer-128k.patch
ViewVC logotype

Contents of /updates/infra_2/perl-URPM/current/SOURCES/URPM.xs-buffer-128k.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 619291 - (show annotations) (download)
Thu May 1 12:39:03 2014 UTC (9 years, 11 months ago) by tmb
File size: 1025 byte(s)
bump URPM.xs buffer size to 128k for hdlist generation (fix from tv)
1 --- URPM-3.40.3/URPM.xs.orig 2013-04-15 08:01:56.000000000 +0300
2 +++ URPM-3.40.3/URPM.xs 2014-05-01 15:35:12.973941821 +0300
3 @@ -754,7 +754,7 @@ return_problems(rpmps ps, int translate_
4
5 static char *
6 pack_list(Header header, int32_t tag_name, int32_t tag_flags, int32_t tag_version, int32_t (*check_flag)(int32_t)) {
7 - char buff[65536];
8 + char buff[65536*2];
9 int32_t *flags = NULL;
10 char **list_evr = NULL;
11 unsigned int i;
12 @@ -2371,7 +2371,7 @@ Pkg_build_info(pkg, fileno, provides_fil
13 char *provides_files
14 CODE:
15 if (pkg->info) {
16 - char buff[65536];
17 + char buff[65536*2];
18 size_t size;
19
20 /* info line should be the last to be written */
21 @@ -3302,7 +3302,7 @@ Urpm_parse_synthesis__XS(urpm, filename,
22 HV *obsoletes = fobsoletes && SvROK(*fobsoletes) && SvTYPE(SvRV(*fobsoletes)) == SVt_PVHV ? (HV*)SvRV(*fobsoletes) : NULL;
23
24 if (depslist != NULL) {
25 - char buff[65536];
26 + char buff[65536*2];
27 char *p, *eol, *t;
28 int buff_len;
29 struct s_Package pkg;

  ViewVC Help
Powered by ViewVC 1.1.30