From a140d5ee7b8cf679235e93ec06bcdfec47e54281 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 21 Nov 2016 16:16:54 +0700 Subject: [PATCH] Fix potential ABR in GBIInfo::loadMicrocode --- src/GBI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GBI.cpp b/src/GBI.cpp index f29a8f9d..d12028d7 100644 --- a/src/GBI.cpp +++ b/src/GBI.cpp @@ -258,7 +258,7 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize) char uc_str[256]; strcpy(uc_str, "Not Found"); - for (u32 i = 0; i < 2048; ++i) { + for (u32 i = 0; i < 2046; ++i) { if ((uc_data[i] == 'R') && (uc_data[i+1] == 'S') && (uc_data[i+2] == 'P')) { u32 j = 0; while (uc_data[i+j] > 0x0A) {