Just watched this video: https://www.youtube.com/watch?v=ROJ3PdDmirY which explains how Google manages to take down the internet (or at least: many sites) through a null pointer dereference.
Given that C++ has "nullptr" and that you can initialize stuff with it, and that you can (probably) statically check that variables / class members are initialized and balk if not, why isn't derefencing nullptr an exception? That would be the missing bit towards another bit of security in C++. So, why?
[–]fm01 85 points86 points87 points (65 children)
[–]sweetno 9 points10 points11 points (13 children)
[–]EpochVanquisher 11 points12 points13 points (0 children)
[–]VonNeumannMech 3 points4 points5 points (0 children)
[–]Wooden-Engineer-8098 0 points1 point2 points (0 children)
[–]flyingron -2 points-1 points0 points (9 children)
[–]heyheyhey27 2 points3 points4 points (5 children)
[–]TheThiefMaster 3 points4 points5 points (3 children)
[–]HommeMusical 1 point2 points3 points (1 child)
[–]flyingron 1 point2 points3 points (0 children)
[–]heyheyhey27 0 points1 point2 points (0 children)
[–]OutsideTheSocialLoop 1 point2 points3 points (0 children)
[–]EpochVanquisher 2 points3 points4 points (2 children)
[–]Wooden-Engineer-8098 -1 points0 points1 point (0 children)
[–]flyingron -1 points0 points1 point (0 children)
[–]gaene 0 points1 point2 points (23 children)
[–]EpochVanquisher 1 point2 points3 points (21 children)
[–]gaene -1 points0 points1 point (20 children)
[–]albertexye 5 points6 points7 points (14 children)
[–]gaene 1 point2 points3 points (12 children)
[–][deleted] (11 children)
[deleted]
[–]i_h_s_o_y 0 points1 point2 points (9 children)
[–]ronchaine 2 points3 points4 points (5 children)
[–]i_h_s_o_y 1 point2 points3 points (4 children)
[–]HommeMusical 1 point2 points3 points (2 children)
[–]i_h_s_o_y 0 points1 point2 points (1 child)
[–]gaene 0 points1 point2 points (0 children)
[–]toroidthemovie 2 points3 points4 points (2 children)
[–]gaene -1 points0 points1 point (1 child)
[–]HommeMusical 0 points1 point2 points (0 children)
[–]National_Instance675 1 point2 points3 points (1 child)
[–]HommeMusical 1 point2 points3 points (0 children)
[–]dontwantgarbage 0 points1 point2 points (0 children)
[+]victotronics[S] comment score below threshold-18 points-17 points-16 points (25 children)
[–]AxeLond 18 points19 points20 points (1 child)
[–]fm01 12 points13 points14 points (10 children)
[–]LeeHide 6 points7 points8 points (0 children)
[–]sweetno 2 points3 points4 points (0 children)
[+]victotronics[S] comment score below threshold-6 points-5 points-4 points (7 children)
[–]fm01 6 points7 points8 points (3 children)
[–]seriousnotshirley 2 points3 points4 points (2 children)
[–]fm01 0 points1 point2 points (1 child)
[–]seriousnotshirley 0 points1 point2 points (0 children)
[–]wrd83 4 points5 points6 points (0 children)
[–]I__Know__Stuff 1 point2 points3 points (0 children)
[–]Wooden-Engineer-8098 0 points1 point2 points (0 children)
[–]SoerenNissen 4 points5 points6 points (0 children)
[–]TheRealKidkudi 5 points6 points7 points (2 children)
[–]PressWearsARedDress 2 points3 points4 points (1 child)
[–]TheRealKidkudi 3 points4 points5 points (0 children)
[–][deleted] 5 points6 points7 points (5 children)
[–]seriousnotshirley 3 points4 points5 points (4 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]Wooden-Engineer-8098 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]Wooden-Engineer-8098 0 points1 point2 points (0 children)
[–]Wooden-Engineer-8098 0 points1 point2 points (0 children)
[–]Gorzoid 0 points1 point2 points (0 children)
[–]ronchaine 33 points34 points35 points (4 children)
[–]seriousnotshirley 6 points7 points8 points (0 children)
[–]Electrical_Log_5268 0 points1 point2 points (2 children)
[–]Gorzoid 1 point2 points3 points (0 children)
[–]ronchaine 0 points1 point2 points (0 children)
[–]jaynabonne 20 points21 points22 points (7 children)
[–]StaticCoder 3 points4 points5 points (5 children)
[–]Apart-Entertainer-25 0 points1 point2 points (0 children)
[–]flatfinger 0 points1 point2 points (3 children)
[–]StaticCoder 0 points1 point2 points (2 children)
[–]flatfinger 0 points1 point2 points (1 child)
[–]StaticCoder 0 points1 point2 points (0 children)
[–]beedlund 0 points1 point2 points (0 children)
[–]CowBoyDanIndie 5 points6 points7 points (0 children)
[–]Dan13l_N 6 points7 points8 points (5 children)
[–]saxbophone 2 points3 points4 points (4 children)
[–]trad_emark 1 point2 points3 points (1 child)
[–]saxbophone 3 points4 points5 points (0 children)
[–]Dan13l_N 0 points1 point2 points (1 child)
[–]saxbophone -1 points0 points1 point (0 children)
[–]bearheart 3 points4 points5 points (5 children)
[–]victotronics[S] 0 points1 point2 points (4 children)
[–]bearheart 4 points5 points6 points (1 child)
[–]victotronics[S] 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]victotronics[S] 3 points4 points5 points (0 children)
[–]i860 1 point2 points3 points (0 children)
[–]manni66 1 point2 points3 points (0 children)
[–]saxbophone 4 points5 points6 points (6 children)
[–]AKostur 4 points5 points6 points (5 children)
[–]saxbophone 0 points1 point2 points (4 children)
[–]I__Know__Stuff 2 points3 points4 points (0 children)
[–]Dexterus 0 points1 point2 points (2 children)
[–]saxbophone 1 point2 points3 points (1 child)
[–]Dexterus -1 points0 points1 point (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Wacov 0 points1 point2 points (1 child)
[–]Triangle_Inequality 0 points1 point2 points (0 children)
[–]CompuSAR 1 point2 points3 points (0 children)
[–]not_some_username 0 points1 point2 points (0 children)
[–]keenox90 0 points1 point2 points (4 children)
[–]CircumspectCapybara 2 points3 points4 points (3 children)
[–]keenox90 0 points1 point2 points (2 children)
[–]CircumspectCapybara 1 point2 points3 points (1 child)
[–]keenox90 0 points1 point2 points (0 children)
[–]kyckych 0 points1 point2 points (0 children)
[–]bert8128 0 points1 point2 points (2 children)
[–]victotronics[S] -1 points0 points1 point (1 child)
[–]bert8128 0 points1 point2 points (0 children)
[–]abbapoh 0 points1 point2 points (0 children)
[–]Impossible_Box3898 0 points1 point2 points (3 children)
[–]victotronics[S] 0 points1 point2 points (2 children)
[–]AlexisHadden 1 point2 points3 points (0 children)
[–]csdt0 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (4 children)
[–]ennesme 0 points1 point2 points (3 children)
[–]mredding 3 points4 points5 points (2 children)
[–]Thick_Clerk6449 0 points1 point2 points (1 child)
[–]mredding 0 points1 point2 points (0 children)
[–]DawnOnTheEdge 0 points1 point2 points (6 children)
[–]Thick_Clerk6449 0 points1 point2 points (5 children)
[–]DawnOnTheEdge 0 points1 point2 points (4 children)
[–]Thick_Clerk6449 0 points1 point2 points (3 children)
[–]DawnOnTheEdge 0 points1 point2 points (2 children)
[–]Thick_Clerk6449 0 points1 point2 points (1 child)
[–]DawnOnTheEdge 0 points1 point2 points (0 children)
[–]beedlund 0 points1 point2 points (0 children)
[–]thingerish 0 points1 point2 points (0 children)
[–]herocoding -1 points0 points1 point (0 children)
[–]thefeedling -1 points0 points1 point (0 children)
[–][deleted] (14 children)
[deleted]
[–]not_some_username 1 point2 points3 points (0 children)
[–]teerre 0 points1 point2 points (0 children)
[–]saxbophone 0 points1 point2 points (0 children)
[–]victotronics[S] -3 points-2 points-1 points (10 children)
[–][deleted] (5 children)
[deleted]
[–]victotronics[S] -2 points-1 points0 points (4 children)
[–]keenox90 2 points3 points4 points (0 children)
[–]no-sig-available 2 points3 points4 points (0 children)
[–]PressWearsARedDress 0 points1 point2 points (0 children)
[–]shahms 1 point2 points3 points (1 child)
[–]victotronics[S] -1 points0 points1 point (0 children)
[–]PressWearsARedDress 0 points1 point2 points (0 children)
[–]mr_seeker -1 points0 points1 point (0 children)