New issue
Advanced search Search tips

Issue 669751 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 1
Type: Bug-Security



Sign in to add a comment

Security: Potential integer overflow in memory allocation expression in TerminatedArray

Project Member Reported by palmer@chromium.org, Nov 30 2016

Issue description

From third_party/WebKit/Source/wtf/TerminatedArray.h:

    static PassPtr create(size_t capacity) {
      return wrapUnique(
          static_cast<TerminatedArray*>(WTF::Partitions::fastMalloc(
              capacity * sizeof(T), WTF_HEAP_PROFILER_TYPE_NAME(T))));
    }

There should probably be a Partitions::fastCalloc or similar 2-argument function, and we should use it here.
 

Comment 1 by och...@chromium.org, Nov 30 2016

Labels: Security_Impact-None
Setting Impact-None to keep the sheriff dashboard happy since there's no concrete vulnerability here. Feel free to change this.

Comment 2 by palmer@chromium.org, Jun 23 2017

Cc: haraken@chromium.org yutak@chromium.org
Labels: -M-57 M-60 OS-Fuchsia
Status: Started (was: Assigned)

Comment 3 by palmer@chromium.org, Jun 23 2017

Components: -Blink>MemoryAllocator>Partition

Comment 5 by palmer@chromium.org, Jun 26 2017

Cc: jochen@chromium.org
Here's another one: https://codereview.chromium.org/2957933002

The long-term, more-complete fix is (IMO) to get rid of all allocator interfaces that take just a single size argument. (Both in PA and in WTF.)

Comment 7 by palmer@chromium.org, Jun 27 2017

Status: Fixed (was: Started)
Project Member

Comment 8 by sheriffbot@chromium.org, Jun 28 2017

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Project Member

Comment 9 by sheriffbot@chromium.org, Oct 4 2017

Labels: -Restrict-View-SecurityNotify allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment