fj,
@fj@mastodon.social avatar

Learn about “-fbounds-safety”, enforcing bounds safety in production C code.
https://www.youtube.com/watch?v=RK9bfrsMdAM

TehPenguin,
@TehPenguin@hachyderm.io avatar

@fj Yet another data point that enabling bounds checking has almost no cost with modern compilers - and yet folks still believe that it does and push towards insecure-by-default designs (see std::vector at() versus operator[]).

One step further than -fbounds-safety would be Checked C (https://github.com/microsoft/checkedc), but that would require making some incremental code changes (ala TypeScript).

jimluther,
@jimluther@techhub.social avatar

@fj This is very cool.

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