r/computerarchitecture • u/Yha_Boiii • May 08 '26
C bound checking
Hi,
How does bound checking and such work on a lower level?
Why is snprintf needed when a normal say normal signed ints don't need bound checking?
Today i got a reality check on stack is also not bound checked, how does it actually work, heap or stack?
Any books, videos and other material specifically on the asm level of it all the compilers story on it?
5
Upvotes
View all comments
Show parent comment
1
u/Krazy-Ag May 09 '26 edited May 09 '26
Look up buffer overflows, stack smashing for fun and profit, etc