OSDN Git Service
(root)
/
android-x86
/
external-e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cffde03
)
debugfs: fix a bug in string_to_time() which misparsed @NNNNNNN inputs
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 14 Mar 2016 17:54:41 +0000
(13:54 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 14 Mar 2016 17:54:41 +0000
(13:54 -0400)
Thanks to David Turner <novalis@novalis.org> for reporting this bug.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/util.c
patch
|
blob
|
history
diff --git
a/debugfs/util.c
b/debugfs/util.c
index
770e7e1
..
bd5de79
100644
(file)
--- a/
debugfs/util.c
+++ b/
debugfs/util.c
@@
-232,7
+232,7
@@
extern __s64 string_to_time(const char *arg)
/* interpret it as an integer */
arg++;
fallback:
- ret = strtoll(arg
+1
, &tmp, 0);
+ ret = strtoll(arg, &tmp, 0);
if (*tmp)
return -1;
return ret;