Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #274348

Category wget
Changed by ChenYanpan <chenyanpanohnoyoudont@xfusion.com>
Changed at Wed 08 Jul 2026 14:16:47
Repository https://gitlab.com/gnuwget/wget.git
Project wget
Branch master
Revision 7b1cdecc49bc77bde220fc575c8a00386c3f3bcf

Comments

* src/metalink.c (clean_metalink_string): Fix inverted trailing-space check
37a40fcb added an `end > beg' bound guard to prevent a buffer
underflow, but accidentally flipped the condition from `isspace' to
`!isspace'. The loop therefore walked back over non-space characters
instead of trailing whitespace, collapsing any string without a
trailing newline to "". Every Metalink/HTTP resource URL was wiped,
so wget could not follow any mirror and
testenv/Test-metalink-http.py failed ("Expected file test.meta not
found"). Restore the `isspace' condition.

Copyright-paperwork-exempt: Yes

Changed files