Reply to post: Re: strlen()

Get ready to patch Git servers, clients – nasty-looking bugs surface

Will Godfrey Silver badge

Re: strlen()

Agreed.

For strings from an external source I use my own simple unsigned counting scheme, and if it looks like it's about to hit the buffers the remainder all goes to /dev/null. The fact is flagged so the program can decide what to do next.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2021