[Rpm-maint] [rpm-software-management/rpm] rpm-4.14.0/tools/debugedit.c:2144]: (style) Array index 'lndx' is used before limits check. (#332)

dcb314 notifications at github.com
Fri Oct 13 07:30:01 UTC 2017


Source code is

                      while (r_offset > (dso->lines.table[lndx].old_idx
                                         + 4
                                         + dso->lines.table[lndx].unit_length)
                             && lndx < dso->lines.used)
                        lndx++;

Suggest limit check array index before use, not after.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20171013/7423cbef/attachment-0001.html>


More information about the Rpm-maint mailing list