Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <014d01cd4bc5$5fcd8f40$1f68adc0$@net>
Date: Sat, 16 Jun 2012 08:38:54 -0500
From: "jfoug" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: RE: Re: [patch] optional new raw sha1 implemetation

>For memrchr, my man page says to define _GNU_SOURCE before including
>string.h but that did not help. After looking at the header I define
>__USE_GNU instead, and undef it after including string.h. Not sure
>what's up with that?

That will not be portable.  Not all builds are gcc.  Since this is in a
non-hot area, we simply should scan backwards with a char pointer, and set
it when we find it.   Or simply keep the length, or scan forward.  Or we
could memset the buffer, make it large enough (17 chars at least), then
simply scan from tail, and know when we get to the 80, that we are chopping
off the right one.

Jim.

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.