~vcs-imports/libice/master

Viewing all changes in revision 166.

  • Committer: Alan Coopersmith
  • Author(s): Allison Lortie
  • Date: 2019-03-24 21:17:32 UTC
  • Revision ID: git-v1:48ed5e04b5a8ba64dcfeea090cf3a32d3087b749
authutil: fix an out-of-bounds access

There is a theoretical edge case where the $HOME environment variable
could be set to the empty string.  IceAuthFileName() unconditionally
checks index 1 of this string, which is out of bounds.

Fix that up by rejecting empty strings in the same way as we reject
NULL.

https://bugs.freedesktop.org/show_bug.cgi?id=49173
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: