• Mark Thompson's avatar
    mov: Avoid memcmp of uninitialised data · 708e84cd
    Mark Thompson authored
    The string codec name need not be as long as the value we are
    comparing it to, so memcmp may make decisions derived from
    uninitialised data that valgrind then complains about (though the
    overall result of the function will always be the same).  Use
    strncmp instead, which will stop at the first zero byte and
    therefore not encounter this issue.
    708e84cd
mov.c 134 KB