[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #21823] Potential NULL pointer dereference on hash.c, hash_insert
From: |
Marcio Buss |
Subject: |
[bug #21823] Potential NULL pointer dereference on hash.c, hash_insert |
Date: |
Tue, 18 Dec 2007 03:19:01 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 (CK-IBM) Firefox/2.0.0.8 |
URL:
<http://savannah.gnu.org/bugs/?21823>
Summary: Potential NULL pointer dereference on hash.c,
hash_insert
Project: make
Submitted by: marciobuss
Submitted on: Tuesday 12/18/2007 at 03:18
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: None
Fixed Release: None
_______________________________________________________
Details:
There's a potential null pointer dereference lurking at hash.c
line 132. The error can be tracked down as follows:
(1) Note the statement at line 131,
const void *old_item = slot ? *slot : 0;
(2) then line 132 calls hash_insert_at (ht, item, slot)
(3) and hash_insert_at does
const void *old_item = *(void **) slot;
right away.
This means hash_insert_at cannot handle a NULL argument on its
third parameter, yet line 132 can potentially pass such value in.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?21823>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #21823] Potential NULL pointer dereference on hash.c, hash_insert,
Marcio Buss <=