News for hackers. Stuff that matters.
Re:Warning: Implicit Backdoor by adisinom on Wednesday September 04, 2019 @03:24PM (#20880547)
It's hypothetical, but other code may expect a bigger buffer than was actually allocated.

Suppose we're on a 32 bit platform and num is 0xF0000001. When multiplied by 64 (0x40), we'll end up allocating a 64 (0x40) byte buffer. But other code converting num to unsigned may be expecting a buffer large enough for 0xF0000001 64 byte records. After all, that was probably the reason for multiplying by 64.

There are no comments on this comment yet.