Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110630100303.GP5036@port70.net>
Date: Thu, 30 Jun 2011 12:03:03 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: passwd/getgrent_a.c bug

__getgrent_a is wrong when *nmem==0
then
    mem[0][0] = mems;
    mem[0][1] = 0;
the correct behaviour is probably
    mem[0][0] = 0;

i made the allocated buffer bigger but i'm not sure
if that's the right fix

View attachment "grent.diff" of type "text/x-diff" (440 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.