[Pkg-acpi-devel] Bug#762910: lines longer than 39 characters are mishandled in /proc/acpi/wakeup
Gergely Risko
risko at debian.org
Fri Sep 26 08:29:09 UTC 2014
Package: acpitool
Version: 0.5.1-3
Tags: patch
While parsing /proc/acpi/wakeup, src/acpitool.cpp assumes that lines are
maximum 39 char long (40 including the terminating NUL character at the
end of C strings).
Since I have a line in /proc/acpi/wakeup that is exactly 40 char long,
the tool doesn't work (it hangs up when it hits that line, consuming
100% CPU forever).
The attached patch changes this behavior to assume maximum 79 char long
lines by increasing the buffer size to 80.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acpitool-0.5.1.patch
Type: text/x-diff
Size: 2352 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20140926/a5e4a301/attachment.patch>
More information about the Pkg-acpi-devel
mailing list