Commit e9267be8 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 340243 (Overrunning array of 1 bytes at byte offset 1 by...

Fix Coverity Scan CID 340243 (Overrunning array of 1 bytes at byte offset 1 by dereferencing pointer ie->value.choice.UESecurityCapabilities.encryptionAlgorithms.buf + 1.)
parent 60873731
...@@ -135,7 +135,7 @@ do { \ ...@@ -135,7 +135,7 @@ do { \
do { \ do { \
(bitstring)->size=2; \ (bitstring)->size=2; \
(bitstring)->bits_unused=0; \ (bitstring)->bits_unused=0; \
(bitstring)->buf=calloc (1, sizeof (uint8_t)); \ (bitstring)->buf=calloc (2, sizeof (uint8_t)); \
(bitstring)->buf[0] = (encralg) >> 8; \ (bitstring)->buf[0] = (encralg) >> 8; \
(bitstring)->buf[1] = (encralg); \ (bitstring)->buf[1] = (encralg); \
}while(0) }while(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment