mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix range check for decoded 32bit integer
This commit is contained in:
parent
60038cbf38
commit
897e5fc7dd
1 changed files with 1 additions and 1 deletions
|
@ -1140,7 +1140,7 @@ scalarSize(char type)
|
|||
return;
|
||||
case 4:
|
||||
*(int32_t*)address = (int32_t)big;
|
||||
if (big > 2147483647 || big + 2147483648 < 0)
|
||||
if (big > 2147483647 || big < -2147483648LL)
|
||||
{
|
||||
NSLog(@"Lost information converting decoded value to int32_t");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue