You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "William Bardwell (JIRA)" <ji...@apache.org> on 2014/03/05 16:51:43 UTC

[jira] [Created] (TS-2618) IOBufferBlock::realloc()'s bounds check is wrong

William Bardwell created TS-2618:
------------------------------------

             Summary: IOBufferBlock::realloc()'s bounds check is wrong
                 Key: TS-2618
                 URL: https://issues.apache.org/jira/browse/TS-2618
             Project: Traffic Server
          Issue Type: Bug
          Components: Core
            Reporter: William Bardwell


Presumably this never fires, but:
 if (i >= (int64_t) sizeof(ioBufAllocator))
    return;

looks wrong, it looks like i is an index into that array, so it should be i >= SIZE(ioBufAllocator))
(SIZE() from ink_defs.h)





--
This message was sent by Atlassian JIRA
(v6.2#6252)