mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-17 07:37:16 +00:00
Fix warning raised by GCC 11. Was: -Wstringop-overflow
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
1254 | *bp++ = *p;
| ~~~~~~^~~~
This commit is contained in:
@@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
|
||||
return -1;
|
||||
}
|
||||
|
||||
buf = (uint8_t *)MALLOC(8);
|
||||
buf = (uint8_t *)MALLOC(16);
|
||||
if (!buf)
|
||||
{
|
||||
return -1;
|
||||
|
||||
@@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
|
||||
return -1;
|
||||
}
|
||||
|
||||
buf = (uint8_t *)MALLOC(8);
|
||||
buf = (uint8_t *)MALLOC(16);
|
||||
if (!buf)
|
||||
{
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user