Bug 145004 - -Warray-bounds warning in JSGlobalObjectFunctions.cpp
Summary: -Warray-bounds warning in JSGlobalObjectFunctions.cpp
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-14 09:24 PDT by Michael Catanzaro
Modified: 2020-02-24 06:21 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-05-14 09:24:05 PDT
GCC 5.1.1 thinks this is a buffer overflow:

[748/5675] Building CXX object Source/.../runtime/JSGlobalObjectFunctions.cpp.o
../../Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp: In function ‘JSC::JSValue JSC::decode(JSC::ExecState*, const char*, bool)’:
../../Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:98:41: warning: array subscript is above array bounds [-Warray-bounds]
                             sequence[i] = Lexer<CharType>::convertHex(q[1], q[2]);
                                         ^