From ee72d6550e0c6ac71c837df40f77f9d86cb76802 Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Thu, 9 May 2019 12:52:08 -0700 Subject: iASL: Add buffer overflow analysis for Create Buffer Field ops Implemented additional buffer overflow analysis for BufferField declarations. Check if a buffer index argument to a create buffer field operation is beyond the end of the target buffer. * * This affects these AML operators: * * AML_CREATE_FIELD_OP * AML_CREATE_BIT_FIELD_OP * AML_CREATE_BYTE_FIELD_OP * AML_CREATE_WORD_FIELD_OP * AML_CREATE_DWORD_FIELD_OP * AML_CREATE_QWORD_FIELD_OP --- source/compiler/aslmessages.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/compiler/aslmessages.c') diff --git a/source/compiler/aslmessages.c b/source/compiler/aslmessages.c index 875ef02df..cf7a7a4f4 100644 --- a/source/compiler/aslmessages.c +++ b/source/compiler/aslmessages.c @@ -365,8 +365,7 @@ const char *AslCompilerMsgs [] = /* ASL_MSG_REGION_LENGTH */ "Operation Region declared with zero length", /* ASL_MSG_TEMPORARY_OBJECT */ "Object is created temporarily in another method and cannot be accessed", /* ASL_MSG_UNDEFINED_EXTERNAL */ "Named object was declared external but the actual definition does not exist", -/* ASL_MSG_INVALID_BUFFER_START_INDEX */ "Buffer starting index might be beyond end of target buffer", -/* ASL_MSG_INVALID_BUFFER_END_INDEX */ "Buffer might extend beyond end of target buffer", +/* ASL_MSG_BUFFER_FIELD_OVERFLOW */ "Buffer field extends beyond end of target buffer" }; /* Table compiler */ -- cgit v1.2.1