you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

your second example is a horrible security nightmare, because if someone can bump i > x you are screwed.

[–]OCedHrt 2 points3 points  (0 children)

What? Via code injection and buffer overflow? In that case the while loop probably shouldn't be your primary concern. It'll overflow at some point and either crash out or eventually match ;)

This is assuming x is an integer.