commit | e73d15d5f5ea12ff94afb77c1e7f1867bd4c5acf | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Wed Jan 24 15:12:21 2018 -0800 |
committer | Tom Joseph <tomjoseph@in.ibm.com> | Mon Jan 29 11:42:49 2018 +0000 |
tree | 0f9f26112f8946d235a7a745bfe40e9641ecb9c1 | |
parent | 3b76e3756edf54ece1b4059d193b65bb2769d22e [diff] |
watchdog: Fix enabled value type When deserializing a bool with sd_bus_message_read, it expects the storage of the passed in container to be 4 bytes. A bool is not guaranteed to be this large and will cause sd_bus_message_read to scribble on the stack. Change enabled to int to guarantee enough space to deserialize the result. For reference libsystemd is doing: *(int*) p = !!*(uint8_t*) q; Change-Id: Ic299e303fcb70941757c453a7b4f643337220afb Signed-off-by: William A. Kennington III <wak@google.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To full clean the repository again run ./bootstrap.sh clean
.