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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 619292 - (show annotations) (download)
Thu May 1 12:43:42 2014 UTC (9 years, 11 months ago) by tmb
File size: 963 byte(s)
bump URPM.xs buffer size to 128k for hdlist generation (fix from tv)
1 --- URPM-4.27/URPM.xs.orig 2013-03-23 17:41:44.000000000 +0200
2 +++ URPM-4.27/URPM.xs 2014-05-01 15:41:53.770872510 +0300
3 @@ -719,7 +719,7 @@ return_problems(rpmps ps, int translate_
4
5 static char *
6 pack_list(const Header header, rpmTag tag_name, rpmTag tag_flags, rpmTag tag_version) {
7 - char buff[65536];
8 + char buff[65536*2];
9 char *p = buff;
10
11 struct rpmtd_s td;
12 @@ -2103,7 +2103,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 @@ -2831,7 +2831,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