mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-09 00:02:55 -05:00
- Fix unittest valgrind false positive uninitialised value report,
where if gcc 9.1.1 uses -O2 (but not -O1) then valgrind 3.15.0 issues an uninitialised value for the token buffer at the str2wire.c rrinternal_get_owner() strcmp with the '@' value. Rewritten to use straight character comparisons removes the false positive. Also valgrinds --expensive-definedness-checks=yes can stop this false positive.
This commit is contained in:
parent
0532cdd357
commit
d8a8730cac
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,12 @@
|
|||
16 August 2019: Wouter
|
||||
- Fix unittest valgrind false positive uninitialised value report,
|
||||
where if gcc 9.1.1 uses -O2 (but not -O1) then valgrind 3.15.0
|
||||
issues an uninitialised value for the token buffer at the str2wire.c
|
||||
rrinternal_get_owner() strcmp with the '@' value. Rewritten to use
|
||||
straight character comparisons removes the false positive. Also
|
||||
valgrinds --expensive-definedness-checks=yes can stop this false
|
||||
positive.
|
||||
|
||||
15 August 2019: Wouter
|
||||
- iana portlist updated.
|
||||
- Fix autotrust temp file uniqueness windows compile.
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ rrinternal_get_owner(sldns_buffer* strbuf, uint8_t* rr, size_t* len,
|
|||
sldns_buffer_position(strbuf));
|
||||
}
|
||||
|
||||
if(strcmp(token, "@") == 0) {
|
||||
if(token[0]=='@' && token[1]=='\0') {
|
||||
uint8_t* tocopy;
|
||||
if (origin) {
|
||||
*dname_len = origin_len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue