I encountered this line of code:
memset(tmp, 0, (-len) & 0x7F);
Where len
is a uint8_t
pointer variable.
What's is the "-" doing to len
before the bitwise operation? What would be the result?
Given it is an unsigned integer, I don't think it'd make sense to add a sign this way (if it is at all possible in C), even less with it being a pointer.