1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

change counter variable type and add exception description comment

This commit is contained in:
Gaya Cohen
2021-05-24 17:04:11 +03:00
parent c20c82bcb5
commit 1650b60234
2 changed files with 4 additions and 1 deletions

View File

@@ -336,7 +336,7 @@ uint32_t DNS::compose_name(const uint8_t* ptr, char* out_ptr) const {
const uint8_t* end = &records_data_[0] + records_data_.size();
const uint8_t* end_ptr = 0;
char* current_out_ptr = out_ptr;
int pointer_counter = 0;
uint8_t pointer_counter = 0;
while (*ptr) {
if (pointer_counter++ > 30){
throw DNS_decompression_pointer_loops();