diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-08-10 23:46:48 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-08-10 23:46:48 +0000 |
commit | ca28862a178c8988d0dafb5c8386f8f1652f553a (patch) | |
tree | 417425e154ac24812cdbdfa1523ef21c4a4bf886 /URPM.xs | |
parent | f97f12b0567dd18204f17a5ee48e6c8850337da5 (diff) | |
download | perl-URPM-ca28862a178c8988d0dafb5c8386f8f1652f553a.tar perl-URPM-ca28862a178c8988d0dafb5c8386f8f1652f553a.tar.gz perl-URPM-ca28862a178c8988d0dafb5c8386f8f1652f553a.tar.bz2 perl-URPM-ca28862a178c8988d0dafb5c8386f8f1652f553a.tar.xz perl-URPM-ca28862a178c8988d0dafb5c8386f8f1652f553a.zip |
Do not try to parse current pointer when the line is invalid or empty.
This fixes a "Conditional jump or move depends on uninitialised value" during empty synthesis parsing
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2897,7 +2897,8 @@ Urpm_parse_synthesis__XS(urpm, filename, ...) p = &buff[buff_len-(p-buff)]; } // EOF: - if (!parse_line(depslist, provides, obsoletes, &pkg, p, urpm, callback)) + if (ok && buff_len > 0 + && !parse_line(depslist, provides, obsoletes, &pkg, p, urpm, callback)) ok = 0; if (Fclose(f) != 0) ok = 0; SPAGAIN; |