pikuma,
@pikuma@mastodon.gamedev.place avatar

Well, it finally happened. An Off-By-Two error...

pervognsen,
@pervognsen@mastodon.social avatar

@pikuma Believe it or not, I had one of those today, too. I was writing some C glue code and needed a +1 to the buffer size for the zero terminator and then there was a regular off-by-one error stacked on top of that. Off-by-two is not that uncommon in C code involving zero-terminated strings.

pikuma,
@pikuma@mastodon.gamedev.place avatar

@pervognsen I do believe you. 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • thenastyranch
  • tester
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • tacticalgear
  • Youngstown
  • ethstaker
  • osvaldo12
  • slotface
  • everett
  • rosin
  • khanakhh
  • megavids
  • ngwrru68w68
  • Leos
  • modclub
  • cubers
  • cisconetworking
  • Durango
  • InstantRegret
  • GTA5RPClips
  • provamag3
  • normalnudes
  • anitta
  • JUstTest
  • lostlight
  • All magazines