Commit d4656ad8 authored by Robert Graham's avatar Robert Graham
Browse files

ASan fixes

parent fb662170
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2023,7 +2023,7 @@ trim(char *line, size_t sizeof_line)

    while (isspace(*line & 0xFF))
        memmove(line, line+1, sizeof_line--);
    while (isspace(line[sizeof_line-1] & 0xFF))
    while (*line && isspace(line[sizeof_line-1] & 0xFF))
        line[--sizeof_line] = '\0';
}

+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ struct Payload2 hard_coded_payloads[] = {
         "\x30\x0d"
           "\x06\x09\x2b\x06\x01\x80\x02\x01\x01\x05\x00" /*sysDesc*/
           "\x05\x00"},        /*^^^^_____IDS LULZ HAH HA HAH*/
    {53, 65536, 0x1f+8, 0, dns_set_cookie,
    {53, 65536, 0x1f, 0, dns_set_cookie,
        /* 00 */"\x50\xb6"  /* transaction id */
        /* 02 */"\x01\x20"  /* quer y*/
        /* 04 */"\x00\x01"  /* query = 1 */