openbox
openbox copied to clipboard
Fix out-of-bounds read
When the direction is right-to-left, i == -1 so memory is read one byte before the string before the pointer is checked against the bound.
You only changed the order of the && expression, this has no benefit at all except maybe for one boolean check.
Yes it does. When i is -1, in the last step of the loop, lc is config_title_layout - 1, so *lc != '\0' may crash.
On Wed, Jan 13, 2021 at 1:07 AM joeftiger [email protected] wrote:
You only cha ged the order kf the && expression, this has no benefit at all except maybe for one boolean check.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/danakj/openbox/pull/26#issuecomment-759115672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCGYUMMZAY7SHKDUOY3SMTSZTP2PANCNFSM4DGQHYTQ .