Skip to content

Security: Avoid casting int64_t to intptr_t #1750

Closed
@turnidge

Description

@turnidge

DartUtils::GetIntegerValue in runtime/bin/dartutils.cc returns an int64_t, but is being implicitly cast down to an intptr_t in some places (e.g. Socket_ReadList)

We should look for other occurrences of this as well.

...

Also possibly:

Dart_ListLength:
          *len = integer.AsInt64Value(); // WRONG

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-security

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions