Mark Andrews
2f946c831a
Attempt to silence untrusted loop bound
Assign hit_len + key_len to len and test the result
rather than recomputing and letting the compiler simplify.
213 isc_region_consume(®ion, 2); /* hit length + algorithm */
9. tainted_return_value: Function uint16_fromregion returns tainted data. [show details]
10. tainted_data_transitive: Call to function uint16_fromregion with tainted argument *region.base returns tainted data.
11. tainted_return_value: Function uint16_fromregion returns tainted data.
12. tainted_data_transitive: Call to function uint16_fromregion with tainted argument *region.base returns tainted data.
13. var_assign: Assigning: key_len = uint16_fromregion(®ion), which taints key_len.
214 key_len = uint16_fromregion(®ion);
14. lower_bounds: Casting narrower unsigned key_len to wider signed type int effectively tests its lower bound.
15. Condition key_len == 0, taking false branch.
215 if (key_len == 0) {
216 RETERR(DNS_R_FORMERR);
217 }
16. Condition !!(_r->length >= _l), taking true branch.
17. Condition !!(_r->length >= _l), taking true branch.
218 isc_region_consume(®ion, 2);
18. lower_bounds: Casting narrower unsigned key_len to wider signed type int effectively tests its lower bound.
19. Condition region.length < (unsigned int)(hit_len + key_len), taking false branch.
219 if (region.length < (unsigned)(hit_len + key_len)) {
220 RETERR(DNS_R_FORMERR);
221 }
222
20. lower_bounds: Casting narrower unsigned key_len to wider signed type int effectively tests its lower bound.
21. Condition _r != 0, taking false branch.
223 RETERR(mem_tobuffer(target, rr.base, 4 + hit_len + key_len));
22. lower_bounds: Casting narrower unsigned key_len to wider signed type int effectively tests its lower bound.
23. var_assign_var: Compound assignment involving tainted variable 4 + hit_len + key_len to variable source->current taints source->current.
224 isc_buffer_forward(source, 4 + hit_len + key_len);
225
226 dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
CID 281461 (#1 of 1): Untrusted loop bound (TAINTED_SCALAR)
24. tainted_data: Using tainted variable source->active - source->current as a loop boundary.
Ensure that tainted values are properly sanitized, by checking that their values are within a permissible range.
227 while (isc_buffer_activelength(source) > 0) {
228 dns_name_init(&name, NULL);
229 RETERR(dns_name_fromwire(&name, source, dctx, options, target));
230 }
2021-02-08 02:02:29 +00:00
..
2021-01-29 12:07:38 +01:00
2021-02-08 02:02:29 +00:00
2020-12-11 10:48:28 +01:00
2021-01-29 12:07:38 +01:00
2020-09-14 16:20:40 -07:00
2020-10-05 16:21:21 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-01-19 10:12:40 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-29 08:22:08 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-11-25 12:45:47 +01:00
2021-02-03 12:22:33 +11:00
2020-11-25 08:25:29 +11:00
2020-11-11 12:53:23 -03:00
2020-12-23 09:02:11 +01:00
2020-09-29 08:22:08 +02:00
2020-09-14 16:20:40 -07:00
2020-12-23 09:02:11 +01:00
2020-12-23 09:02:11 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-10-28 15:48:58 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-01-29 12:07:38 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-01-12 10:54:48 +00:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 15:35:06 +01:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-01-29 12:07:38 +01:00
2020-09-14 16:20:40 -07:00
2020-09-23 16:09:26 +02:00
2020-09-30 13:24:29 +00:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-11-26 10:43:59 +01:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2021-01-25 09:19:22 +01:00
2020-09-14 16:20:40 -07:00
2021-01-26 15:01:26 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-10-02 08:41:43 +02:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-12-01 10:46:58 +11:00
2020-09-14 16:20:40 -07:00
2020-12-08 18:36:23 +01:00
2021-02-03 13:06:27 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-11-26 10:43:59 +01:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-11-11 12:53:23 -03:00
2020-11-11 12:53:23 -03:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-29 10:36:07 +10:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-01-29 12:07:38 +01:00
2020-09-14 16:20:40 -07:00
2020-09-14 16:20:40 -07:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2020-12-23 09:02:11 +01:00
2020-10-30 00:17:24 +11:00
2021-01-29 12:07:38 +01:00
2021-01-29 12:07:38 +01:00
2020-11-26 10:43:59 +01:00
2021-02-03 12:22:33 +11:00
2020-09-14 16:20:40 -07:00
2021-01-28 11:07:03 +11:00
2021-02-03 12:22:33 +11:00