]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ucs2...
authorMichael Adam <obnox@samba.org>
Thu, 29 Sep 2011 16:06:56 +0000 (18:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Oct 2011 17:57:19 +0000 (19:57 +0200)
commitbc3af75ec9841753b5bfbcd04d9a412f7ee5c4b5
tree4de8a79f1049caeba9beae1b41da24c65647fca3
parent11287cec6a53717c7abc5a54c2607f8ffb33d8bb
s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ucs2 string

1. catch data blobs with odd number of bytes (not an ucs2 string at all)
2. test the right ucs2 character to be 0
   (prevent out-of bounds access/potential segfault)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Oct  2 01:26:05 CEST 2011 on sn-devel-104
(cherry picked from commit 95bb2c23e6e9c52a1e34916dff05b1d306278bc6)

The last 2 patches address bug #8528 (SEGFAULT from net registry export on not
zero terminated REG_SZ values).
source3/registry/reg_format.c