Skip to content

Commit

Permalink
ACPI: buffer array too short in drivers/acpi/system.c
Browse files Browse the repository at this point in the history
Since "ff_gbl_lock" has a length of 11 chars and is copied with sprintf
to char buffer[10], there is a problem. We need char buffer[12] because
of the closing zero byte.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Johann Felix Soden authored and Len Brown committed Mar 12, 2008
1 parent b6a1638 commit c8dc9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void acpi_irq_stats_init(void)
goto fail;

for (i = 0; i < num_counters; ++i) {
char buffer[10];
char buffer[12];
char *name;

if (i < num_gpes)
Expand Down

0 comments on commit c8dc9de

Please sign in to comment.