[Top][All Lists]

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

regexec.c:3618: warning: call to __builtin___memset_chk will always over

From: Andreas Schwab
Subject: regexec.c:3618: warning: call to __builtin___memset_chk will always overflow destination buffer
Date: Mon, 05 Jun 2006 00:19:38 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

This change has broken build_trtable in regexec.c:

2006-04-09  Paul Eggert  <address@hidden>

        Merge regex changes from libc, removing some of our
        POSIX-conformance changes that were rejected and redoing them in a
        less-intrusive way.

It's causing a write beyond object bounds, since ASCII_CHARS is greater
than sizeof (bitset_t):

          if (ASCII_CHARS % BITSET_WORD_BITS == 0)
            memset (accepts, -1, ASCII_CHARS);


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]