Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by eridius

8 years ago

No it won't. It's using pointers, not array indices. The compiler has no possible way of knowing that `pe` is the one-past-the-end address.

2 comments

eridius

Reply

arestor  8 years ago

It's still UB. The array could potentially be at the end of the address space...

  • eridius  8 years ago

    Well yes, it could, but that's not really an argument for saying that Ragel using == is just as good as using >=.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities