mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fixes Coverity issues reported from DNS_Mgr merge
Reports fixed: 1488295, 1488292, 1488281, 1488279
This commit is contained in:
parent
aa5a5b2136
commit
e28d561f79
2 changed files with 14 additions and 7 deletions
|
@ -314,7 +314,8 @@ TEST_CASE("dns_mapping save reload")
|
|||
char buffer[4096];
|
||||
memset(buffer, 0, 4096);
|
||||
FILE* tmpfile = fmemopen(buffer, 4096, "r+");
|
||||
fseek(tmpfile, 0, SEEK_END);
|
||||
if ( fseek(tmpfile, 0, SEEK_END) < 0 )
|
||||
reporter->Error("DNS_Mapping: seek failed");
|
||||
|
||||
// Try loading from the file at EOF. This should cause a mapping failure.
|
||||
DNS_Mapping mapping(tmpfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue