mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +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:
parent
d7198845c0
commit
fd5698b39d
@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = (uint8_t *)MALLOC(8);
|
buf = (uint8_t *)MALLOC(16);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1204,7 +1204,7 @@ int asn_long2INTEGER(INTEGER_t *st, int64_t value)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = (uint8_t *)MALLOC(8);
|
buf = (uint8_t *)MALLOC(16);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user