Home / Vulnerability Database / Objective-C : Incorrect sizeof usage in malloc
Objective-C

Objective-C : Incorrect sizeof usage in malloc

Classification

OWASP Mobile Top 10 2016
CWE/SANS Top 25 2021

Overview

The sizeof function is used incorrectly in the memory allocation function, which could lead to a buffer overflow.

If the incorrect calculation is used in the context of memory allocation, then the software may create a buffer that is smaller or larger than expected. If allocated buffer is less than expected, it may lead to out-of-bounds read or write, which in turn causing a denial of service, arbitrary code execution or disclosure of sensitive data.

MEDIUM

DerScanner Severity Score

Do you want to fix Objective-C : Incorrect sizeof usage in malloc in your application?

See also

Objective-C

Objective-C : Internal information leak

Objective-C

Objective-C : Weak hashing algorithm

Objective-C

Objective-C : Unsafe reflection