You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2015/06/16 23:32:01 UTC
[jira] [Updated] (TS-3696) Bad range check in HdrHeap
[ https://issues.apache.org/jira/browse/TS-3696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-3696:
------------------------------
Priority: Blocker (was: Major)
> Bad range check in HdrHeap
> --------------------------
>
> Key: TS-3696
> URL: https://issues.apache.org/jira/browse/TS-3696
> Project: Traffic Server
> Issue Type: Bug
> Components: HTTP
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Priority: Blocker
> Fix For: 6.0.0
>
>
> gcc 5.1 complains with
> {code}
> ../../../proxy/hdrs/HdrHeap.cc: In member function 'void HdrHeap::inherit_string_heaps(const HdrHeap*)':
> ../../../proxy/hdrs/HdrHeap.cc:978:23: error: array subscript is above array bounds [-Werror=array-bounds]
> if (m_ronly_heap[z].m_heap_start == h_start) {
> ^
> cc1plus: all warnings being treated as errors
> Makefile:677: recipe for target 'HdrHeap.o' failed
> make[1]: *** [HdrHeap.o] Error 1
> {code}
> There's a check in the code to make sure *index is within the boundaries, but it is done too late.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)