pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59186: pkgtools/pbulk: infinite loop in parse_full_tree



>Number:         59186
>Category:       pkg
>Synopsis:       pkgtools/pbulk: infinite loop in parse_full_tree
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 17 06:15:00 +0000 2025
>Originator:     Robert Whitlock
>Release:        pkgsrc current
>Organization:
>Environment:
>Description:
The function parse_full_tree in pkgtools/pbulk/files/pbulk/pscan/jobs.c has an infinite loop in the case where the first character is a blank. It seems like

if (data == eol)
	continue;

perhaps should have been

if (data == eol) {
	data++;
	continue;
}

but I am not familiar with this code base so that might be wrong.
>How-To-Repeat:
code inspection
>Fix:



Home | Main Index | Thread Index | Old Index