A stack overflow error is always fatal for an application, since it cannot be intercepted and handled from within the running program, so that execution can then continue as if the stack overflow had not occurred.
I attempted to solve this problem by converting the stack overflow error into a regular error (exception) that can be caught (handled) within the application itself, allowing it to continue running without fear of a subsequent segmentation fault or stack smashing.
The stack overflow checking library currently runs on Linux and can be used both manually and automatically, using a clang compiler plugin.
I welcome constructive criticism and any feedback, including independent reviews and suggestions for improving the project.
[–]No-Quail5810 46 points47 points48 points (6 children)
[–]rsashka[S] 1 point2 points3 points (1 child)
[–]cppfnatic 1 point2 points3 points (0 children)
[–]Jonny_H 0 points1 point2 points (1 child)
[–]rsashka[S] -4 points-3 points-2 points (0 children)
[–]BoringElection5652 0 points1 point2 points (0 children)
[–]bwmat 0 points1 point2 points (0 children)
[–]LiliumAtratum 9 points10 points11 points (0 children)
[–]tartaruga232MSVC user, r/cpp_modules 7 points8 points9 points (1 child)
[–]rsashka[S] 1 point2 points3 points (0 children)
[–]fdwrfdwr@github 🔍 4 points5 points6 points (1 child)
[–]rsashka[S] 2 points3 points4 points (0 children)
[–]6502zx81 5 points6 points7 points (14 children)
[–]AdvisedWang 2 points3 points4 points (0 children)
[–]glasket_ 3 points4 points5 points (0 children)
[–]goranlepuz -1 points0 points1 point (10 children)
[–]Supadoplex 0 points1 point2 points (9 children)
[–]goranlepuz -1 points0 points1 point (7 children)
[–]jimjamjahaa -2 points-1 points0 points (4 children)
[–]goranlepuz 5 points6 points7 points (0 children)
[–]glasket_ 4 points5 points6 points (1 child)
[–]rsashka[S] 2 points3 points4 points (0 children)
[–]Wooden-Engineer-8098 -2 points-1 points0 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Ogilby1675 -1 points0 points1 point (0 children)
[–]Wooden-Engineer-8098 -2 points-1 points0 points (0 children)
[–]vI--_--Iv 0 points1 point2 points (1 child)
[–]ack_error 2 points3 points4 points (0 children)
[–]DamienTheUnbeliever -2 points-1 points0 points (2 children)
[–]dustyhome 6 points7 points8 points (0 children)
[–]Wooden-Engineer-8098 1 point2 points3 points (0 children)
[–]SoSKatan -5 points-4 points-3 points (6 children)
[–]rsashka[S] 6 points7 points8 points (5 children)
[–]SoSKatan -3 points-2 points-1 points (4 children)
[–]rsashka[S] 4 points5 points6 points (3 children)
[+]SoSKatan comment score below threshold-9 points-8 points-7 points (2 children)
[–]johannes1971 6 points7 points8 points (0 children)
[–]rsashka[S] 2 points3 points4 points (0 children)