public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/808] New: Unclear malloc error detection message
@ 2005-03-29 19:04 hjl at lucon dot org
2005-09-27 1:56 ` [Bug libc/808] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: hjl at lucon dot org @ 2005-03-29 19:04 UTC (permalink / raw)
To: glibc-bugs
There are
oldp = mem2chunk(oldmem);
oldsize = chunksize(oldp);
/* Simple tests for old block integrity. */
if (__builtin_expect ((uintptr_t) oldp & MALLOC_ALIGN_MASK, 0))
{
errstr = "realloc(): invalid pointer";
errout:
malloc_printerr (check_action, errstr, oldmem);
return NULL;
}
if (__builtin_expect (oldp->size <= 2 * SIZE_SZ, 0)
|| __builtin_expect (oldsize >= av->system_mem, 0))
{
errstr = "realloc(): invalid size";
goto errout;
}
in malloc/malloc.c. "invalid size" is not very clear that which size
is invalid, new or old.
--
Summary: Unclear malloc error detection message
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: hjl at lucon dot org
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=808
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/808] Unclear malloc error detection message
2005-03-29 19:04 [Bug libc/808] New: Unclear malloc error detection message hjl at lucon dot org
@ 2005-09-27 1:56 ` drepper at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2005-09-27 1:56 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2005-09-27 01:55 -------
No message will ever explain it in detail. So don't complain about the change I
made.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=808
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-27 1:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 19:04 [Bug libc/808] New: Unclear malloc error detection message hjl at lucon dot org
2005-09-27 1:56 ` [Bug libc/808] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).