diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-13 19:11:28 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-13 19:11:28 +0000 |
commit | 67079ebff7a5a6d43d70df1c1a574c10172d0129 (patch) | |
tree | 76f27c7dc0fc392829dd46aa04d8eaeda4ea00ea | |
parent | 02db8b54afdaf113d72a0ed518aa2ac35fe198dd (diff) | |
download | perl-URPM-67079ebff7a5a6d43d70df1c1a574c10172d0129.tar perl-URPM-67079ebff7a5a6d43d70df1c1a574c10172d0129.tar.gz perl-URPM-67079ebff7a5a6d43d70df1c1a574c10172d0129.tar.bz2 perl-URPM-67079ebff7a5a6d43d70df1c1a574c10172d0129.tar.xz perl-URPM-67079ebff7a5a6d43d70df1c1a574c10172d0129.zip |
Don't read/write after the string when the synthesis is slightly malformed
(backported from trunk)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | URPM.xs | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- don't read/write after the string when the synthesis is slightly + malformed + Version 3.38.1.1 - 29 February 2012 - do not add FILENAME_TAG to hdlist anymore (unused since mdv2008) @@ -1906,7 +1906,7 @@ Pkg_filename(pkg) if (pkg->info) { char *eon; - if ((eon = strchr(pkg->info, '@')) != NULL) { + if ((eon = strchr(pkg->info, '@')) != NULL && strlen(eon) >= 3) { char savbuf[4]; memcpy(savbuf, eon, 4); /* there should be at least epoch and size described so (@0@0 minimum) */ memcpy(eon, ".rpm", 4); |