소스 검색

ACPI: buffer array too short in drivers/acpi/system.c

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>
Johann Felix Soden 17 년 전
부모
커밋
c8dc9de109
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/acpi/system.c

+ 1 - 1
drivers/acpi/system.c

@@ -319,7 +319,7 @@ void acpi_irq_stats_init(void)
 		goto fail;
 		goto fail;
 
 
 	for (i = 0; i < num_counters; ++i) {
 	for (i = 0; i < num_counters; ++i) {
-		char buffer[10];
+		char buffer[12];
 		char *name;
 		char *name;
 
 
 		if (i < num_gpes)
 		if (i < num_gpes)