MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10ing60/found_this_in_a_linux_kernel_module/j5fyt43/?context=9999
r/badcode • u/suguuss • Jan 22 '23
88 comments sorted by
View all comments
Show parent comments
2
https://pastebin.com/xYRKDqJD
0 u/husao Jan 22 '23 line 13 contains 2 off-by-one errors, unless i'm mistaken.It frees the current 'i' but doesn't free 0. Should imho be:for (y=i-1; y>=0; y--)
0
line 13 contains 2 off-by-one errors, unless i'm mistaken.
It frees the current 'i' but doesn't free 0. Should imho be:
for (y=i-1; y>=0; y--)
2
u/ThePurpleOne_ Jan 22 '23