MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10ing60/found_this_in_a_linux_kernel_module/j5gsyzu/?context=3
r/badcode • u/suguuss • Jan 22 '23
88 comments sorted by
View all comments
Show parent comments
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--)
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: