Bug 145004

Summary: -Warray-bounds warning in JSGlobalObjectFunctions.cpp
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: mcatanzaro
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

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]);
                                         ^