diff options
| author | Jim Meyering <meyering@redhat.com> | 2011-12-28 18:30:50 +0100 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2011-12-28 18:53:32 +0100 |
| commit | 6e00315bf290310895036fce979a7e0210871b63 (patch) | |
| tree | 1a6f6861b0a7bac8d08dae7d3f72d085d256d2bf /scripts/git-hooks/commit-msg | |
| parent | tests: also unset _STDBUF_E, _STDBUF_I and _STDBUF_O (diff) | |
| download | coreutils-6e00315bf290310895036fce979a7e0210871b63.tar.gz coreutils-6e00315bf290310895036fce979a7e0210871b63.zip | |
tail: avoid theoretically undefined behavior
* src/tail.c (start_lines): Do not form potentially-invalid address.
Use safe_read's return value as a pointer offset only after
ensuring that it is not SAFE_READ_ERROR (size_t)(-1).
Spotted by coverity.
Also, move declaration of "p" to be closer to first use.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
