commit | 49e1854600bca3b2efbddd365d7b328fbcd0ced6 | [log] [tgz] |
---|---|---|
author | Michael Forney <mforney@mforney.org> | Fri Jul 08 10:24:08 2016 -0700 |
committer | sin <sin@2f30.org> | Sat Jul 09 10:17:16 2016 +0100 |
tree | cebf3ba97d382cf8199025ef126807baea9e203b | |
parent | 5ae2793da60e06b5d804ca71e355e871166abfe8 [diff] |
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.