Menu

#120 fjmem.c: 3 * possible array index out of range

0.17
open
nobody
None
6
2018-06-27
2014-12-16
dcb
No

1.

[fjmem.c:220]: (style) Array index 'idx' is used before limits check.

Source code is

while (dr->out->data[idx] && (idx < dr->out->len))
    idx++;

Suggest sanity check array index before use.

2.

[fjmem.c:225]: (style) Array index 'idx' is used before limits check.

3.

[fjmem.c:230]: (style) Array index 'idx' is used before limits check.

Discussion

  • Geert Stappers

    Geert Stappers - 2018-06-27
    • Group: --> 0.17
    • Priority: 5 --> 6
     
  • Geert Stappers

    Geert Stappers - 2018-06-27

    Patches welcome

     

Log in to post a comment.

MongoDB Logo MongoDB