lib/util: skip single hex digit at the end of the input sting - fix potential segfault
authorMichael Adam <obnox@samba.org>
Tue, 18 Oct 2011 16:10:00 +0000 (18:10 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 18 Oct 2011 20:32:59 +0000 (22:32 +0200)
commit47aa9ed82f67758c3b4d9ab46dd8dd65508a10eb
tree73ae4dad6aceeb60c7eb68308f5864be3e7ae0cb
parentcb47890cf2734afff502cf8b95635ebc75bc5974
lib/util: skip single hex digit at the end of the input sting - fix potential segfault

The second of two digits was read without checking for the length of the input
string. For a non-zero-terminated input string, this might have caused a
segfault.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Oct 18 22:32:59 CEST 2011 on sn-devel-104
lib/util/util.c