[PATCH] Fix flakey autobuilds due to DNS tests

Garming Sam garming at catalyst.net.nz
Thu Jun 1 03:06:22 UTC 2017


Hi,

I've finally managed to figure out the cause of the flapping DNS tests
thanks to a changeset which caused them to trigger much more often. This
was due to dns_name_equal failing to correctly compare zero length
strings. Such a case occurs in the DNS tests where a DNS name was set to
'.' and then subsequently transformed to ''.

dns_name_equal accidentally compared the index at -1 to '.' and so every
now and again they would not be equal when comparing two zero length
strings. Attached is a patch to prevent the out of bounds read and
prevent any more flapping DNS tests.

Please review and push.


Cheers,

Garming

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dnsserver-Stop-dns_name_equal-doing-OOB-read.patch
Type: text/x-patch
Size: 1176 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170601/7f267b18/0001-dnsserver-Stop-dns_name_equal-doing-OOB-read.bin>


More information about the samba-technical mailing list