NetBSD Problem Report #59186
From www@netbsd.org Mon Mar 17 06:14:42 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C338E1A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Mar 2025 06:14:42 +0000 (UTC)
Message-Id: <20250317061441.DC3001A923C@mollari.NetBSD.org>
Date: Mon, 17 Mar 2025 06:14:41 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgtools/pbulk: infinite loop in parse_full_tree
X-Send-Pr-Version: www-1.0
>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:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.