GNOME Bugzilla – Bug 787302
gtk+-3.22.20/gtk/gtkmountoperation-x11.c:669:sanity check after use ?
Last modified: 2017-09-12 14:22:45 UTC
gtk+-3.22.20/gtk/gtkmountoperation-x11.c:669]: (style) Array index 'n' is used before limits check. Source code is for (; env[n] != '\0' && n < env_len; n++) ; Suggest sanity check array index before use, not after.
Created attachment 359504 [details] [review] gtkmountoperation-x11: Do array length check before dereference Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 359504 [details] [review]: Ouch!
Attachment 359504 [details] pushed as 7069dc0 - gtkmountoperation-x11: Do array length check before dereference