projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b02c7c
)
fsck: don't read invalid data
author
Lennart Poettering
<lennart@poettering.net>
Mon, 9 Mar 2015 17:58:05 +0000
(18:58 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 9 Mar 2015 17:58:05 +0000
(18:58 +0100)
src/fsckd/fsckd.c
patch
|
blob
|
history
diff --git
a/src/fsckd/fsckd.c
b/src/fsckd/fsckd.c
index
0fac153
..
7780860
100644
(file)
--- a/
src/fsckd/fsckd.c
+++ b/
src/fsckd/fsckd.c
@@
-171,11
+171,11
@@
static int plymouth_feedback_handler(sd_event_source *s, int fd, uint32_t revent
return 0;
}
- if (buffer[0] == '\15')
+ if (
l > 1 &&
buffer[0] == '\15')
log_error("Message update to plymouth wasn't delivered successfully");
/* the only answer support type we requested is a key interruption */
- if (buffer[0] == '\2' && buffer[5] == '\3') {
+ if (
l > 2 &&
buffer[0] == '\2' && buffer[5] == '\3') {
m->cancel_requested = true;
/* cancel all connected clients */