od: Don't advance past end of type string
Currently, if you specify -t x, then s is advanced once in the switch statement to determine the length, and then once again in the for loop, resulting in a read past the end of the argument. Also, use sizeof(int) when no length is specified, as specified by POSIX.master
parent
5ae2793da6
commit
49e1854600
Loading…
Reference in New Issue