Whamcloud - gitweb
e2p: fix segfault in e2p_os2string
authorAdam Buchbinder <abuchbinder@google.com>
Sat, 22 Jul 2017 21:52:24 +0000 (17:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 22 Jul 2017 21:52:30 +0000 (17:52 -0400)
commit44137c3b2607ab21178860c595689353efb54340
tree7f74710b897678dc33f31c27cef9da0c84d24ce7
parentd202f46d81c6ca8a0dbce2053cf8114bd68a3ddc
e2p: fix segfault in e2p_os2string

Passing in a negative integer would lead to a segfault, and
a crafted filesystem image could trigger that.

Signed-off-by: Adam Buchbinder <abuchbinder@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/ostype.c