Debian Bug report logs -
#30773
libc6-dev: regexp.h compares to 'n' rather than '\n'
Reported by: Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
Date: Wed, 16 Dec 1998 13:33:02 UTC
Severity: wishlist
Found in version 2.0.7u-5
Done: Thomas Schoepf <schoepf@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Dale Scheetz <dwarf@polaris.net>
:
Bug#30773
; Package libc6-dev
.
(full text, mbox, link).
Acknowledgement sent to Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
:
New bug report received and forwarded. Copy sent to Dale Scheetz <dwarf@polaris.net>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libc6-dev
Version: 2.0.7u-5
Severity: wishlist
Line 134 of /usr/include/regexp.h:
if (__ch == '\0' || __ch == 'n')
This is just a guess, as I've never used this code, but shouldn't this
compare __ch to '\n' rather than 'n'? The comment on lines 93-98 says:
/* Get and compile the user supplied pattern up to end of line or
string or until EOF is seen, whatever happens first. The result is
placed in the buffer starting at EXPBUG and delimited by ENDBUF.
This function cannot be defined in the libc itself since it depends
on the macros. */
There's a bug in the comment as well: the real parameter is expbuf,
not expbug.
I set the severity to wishlist because I'm not sure of these being
bugs and programs shouldn't use this header anyway.
-- System Information
Debian Release: slink
Kernel Version: Linux PC486 2.0.36 #1 to marras 19 00:12:13 EET 1998 i486 unknown
Versions of the packages libc6-dev depends on:
ii libc6 2.0.7u-5 The GNU C library version 2 (run-time files)
ii gcc 2.7.2.3-6 The GNU C compiler.
Reply sent to Thomas Schoepf <schoepf@debian.org>
:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
:
Bug acknowledged by developer.
(full text, mbox, link).
Message #10 received at 30773-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
this has been fixed in between:
asterix:~$ grep -n EXPBUG /usr/include/regexp.h
asterix:~$ grep -n "__ch ==" /usr/include/regexp.h
136: if (__ch == '\0' || __ch == '\n')
asterix:~$
Thomas
--
DSA/B0FA4F49;ElG/C631AF6E:FA38 2D7E 408F 61E4 BF49 B48F 04BD F5BE B0FA 4F49
RSA/2EA7BBBD: 08 96 1F CD AD 55 03 0F 95 92 B0 F2 04 32 4B 52
[Message part 2 (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Apr 24 11:21:22 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.