-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Closed
Copy link
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Static code scan issues found in file:
Category: Memory - corruptions
Function: test_dns_add_callback6
Component: Tests
CID: 216792
Details:
226 struct dns_resolve_context *dnsCtx = &resv_ipv6;
227 const char *dns_servers_str[] = { DNS_NAME_IPV6, NULL };
228 int ret;
229
230 dns_resolve_close(dnsCtx);
231
>>> CID 216792: Memory - corruptions (OVERRUN)
>>> Overrunning struct type dns_resolve_context of 144 bytes by passing it to a function which accesses it at byte offset 207.
232 ret = dns_resolve_init(dnsCtx, dns_servers_str, NULL);
233 if (ret < 0) {
234 LOG_ERR("dns_resolve_init fail (%d)", ret);
235 return;
236 }
237
Please fix or provide comments in coverity using the link:
https://scan9.coverity.com/reports.htm#v32951/p12996.
Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the CODEOWNERS file.
Metadata
Metadata
Assignees
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug