Menu

#6 strncmp() should be replaced by memcmp()

dbh
closed-fixed
nobody
None
5
2016-09-21
2016-09-19
No

Keys could contain bytes with a value of zero, leading to incorrect key comparisons with strncmp() on line 457 and 478 of "dbh_static.i". Using memcmp() instead would be appropriate.

Discussion

  • Edscott Wilson Garcia

    • status: open --> closed-fixed
     
  • Edscott Wilson Garcia

    That is correct. Fixed.

     

Log in to post a comment.