mirror of https://github.com/getdnsapi/getdns.git
Fixing VS studio analysis issues in Get DNS code.
This commit is contained in:
parent
a4badbb058
commit
b91e13b13b
|
@ -117,6 +117,9 @@ _rs_stir(void)
|
||||||
#ifdef SIGKILL
|
#ifdef SIGKILL
|
||||||
raise(SIGKILL);
|
raise(SIGKILL);
|
||||||
#else
|
#else
|
||||||
|
#ifdef GETDNS_ON_WINDOWS
|
||||||
|
DebugBreak();
|
||||||
|
#endif
|
||||||
exit(9); /* windows */
|
exit(9); /* windows */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -128,6 +131,9 @@ _rs_stir(void)
|
||||||
explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */
|
explicit_bzero(rnd, sizeof(rnd)); /* discard source seed */
|
||||||
|
|
||||||
/* invalidate rs_buf */
|
/* invalidate rs_buf */
|
||||||
|
#ifdef GETDNS_ON_WINDOWS
|
||||||
|
_Analysis_assume_(rs != NULL);
|
||||||
|
#endif
|
||||||
rs->rs_have = 0;
|
rs->rs_have = 0;
|
||||||
memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
|
memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
|
||||||
|
|
||||||
|
@ -158,6 +164,9 @@ _rs_stir_if_needed(size_t len)
|
||||||
#endif
|
#endif
|
||||||
if (!rs || rs->rs_count <= len)
|
if (!rs || rs->rs_count <= len)
|
||||||
_rs_stir();
|
_rs_stir();
|
||||||
|
#ifdef GETDNS_ON_WINDOWS
|
||||||
|
_Analysis_assume_(rs != NULL);
|
||||||
|
#endif
|
||||||
if (rs->rs_count <= len)
|
if (rs->rs_count <= len)
|
||||||
rs->rs_count = 0;
|
rs->rs_count = 0;
|
||||||
else
|
else
|
||||||
|
|
|
@ -1323,7 +1323,7 @@ static int _rr_iter_rdata_cmp(const void *a, const void *b)
|
||||||
* When the rrset was a wildcard expansion (rrsig labels < labels owner name),
|
* When the rrset was a wildcard expansion (rrsig labels < labels owner name),
|
||||||
* nc_name will be set to the next closer (within rrset->name).
|
* nc_name will be set to the next closer (within rrset->name).
|
||||||
*/
|
*/
|
||||||
#define VAL_RRSET_SPC_SZ 1024
|
#define VAL_RRSET_SPC_SZ 256
|
||||||
static int _getdns_verify_rrsig(struct mem_funcs *mf,
|
static int _getdns_verify_rrsig(struct mem_funcs *mf,
|
||||||
_getdns_rrset *rrset, _getdns_rrsig_iter *rrsig, _getdns_rrtype_iter *key, const uint8_t **nc_name)
|
_getdns_rrset *rrset, _getdns_rrsig_iter *rrsig, _getdns_rrtype_iter *key, const uint8_t **nc_name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue