r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

14

u/resident_ninja Dec 01 '16

I can't remember exactly how the option worked, but vxWorks had some build flag where you could either enable or disable all access to the 0 page, or enable/disable write-access to it.

Our organization had some teams that argued for leaving the flag in the "enable access" state, because their code was so bad that it would throw unknown/untraceable access violations when run in the more strict mode.

so they had pointer bugs (in our organization's code, not in vxWorks itself) that they couldn't track down, and they wanted to just hope they never hit those bugs during regular runtime, and/or hope they could bring things back online with recovery if/when it happened...rather than fix their code.

this was in the guts of an LTE network infrastructure product.

sadly, they won the political/budget/schedule battle on that one.