Commit 899d1506 authored by gabrielC's avatar gabrielC Committed by Cedric Roux

bug fixes from Fujitsu (bug 26)

```-------------------------------------------------------
bug 26

Ttile:
g_buffer has only 32 index, but he/she tries to zero clear
1024 index.

Bug Location:
static uint8_t g_buffer[32];
:
memset (g_buffer, 0, 1024);

Note:
Detected by CppCheck
```

-------------------------------------------------------
parent adb3b25c
...@@ -228,7 +228,7 @@ void rlc_am_v9_3_0_test_read_write_bit_field() ...@@ -228,7 +228,7 @@ void rlc_am_v9_3_0_test_read_write_bit_field()
uint8_t* byte_pos_read = g_buffer; uint8_t* byte_pos_read = g_buffer;
uint16_t read_value; uint16_t read_value;
memset (g_buffer, 0, 1024); memset (g_buffer, 0, sizeof(g_buffer));
// byte 0 // byte 0
rlc_am_write8_bit_field(&byte_pos_write, &bit_pos_write, 1, 1); rlc_am_write8_bit_field(&byte_pos_write, &bit_pos_write, 1, 1);
rlc_am_write8_bit_field(&byte_pos_write, &bit_pos_write, 1, 0); rlc_am_write8_bit_field(&byte_pos_write, &bit_pos_write, 1, 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