summaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-11-08 19:03:39 +0100
committerJim Meyering <meyering@redhat.com>2011-11-12 10:22:55 +0100
commitf8245e96cd11756cce8f47ded4459f3c170cd2e3 (patch)
tree803b6469b73a34a8a91e70d60d3e8d3dab37bba5 /scripts/git-hooks/commit-msg
parent* tests/misc/sort-continue: Port to Fedora 15. (diff)
downloadcoreutils-f8245e96cd11756cce8f47ded4459f3c170cd2e3.tar.gz
coreutils-f8245e96cd11756cce8f47ded4459f3c170cd2e3.zip
ls: plug a per-argument leak
Using ls -l on an SELinux-enabled system would leak one SELinux context string per non-empty-directory command-line argument. * src/ls.c (free_ent): New function, factored out of... (clear_files): ...here. Use it. (extract_dirs_from_files): Call free_ent (f), rather than simply free (f->name). The latter failed to free the possibly-malloc'd linkname and scontext members, and thus could leak one of those strings per command-line argument. * THANKS.in: Update. * NEWS (Bug fixes): Mention it. Reported by Juraj Marko in http://bugzilla.redhat.com/751974.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions