buffer-overrun
buffer overrun throw return address
When I throw in a method A, it causes buffer overrun but when I return, it runs fine. I thought throw moves execution to the caller method so the address it goes to should be the same as return addres[详细]
2023-01-03 22:25 分类:问答if one complains about gets(), why not do the same with scanf("%s",...)?
From man gets: Never use gets().Because it is impossible to tell without knowing the datainadvancehowmany[详细]
2023-01-02 13:57 分类:问答How do you program safely outside of a managed code environment?
If you are someone who programs in C or C++, without the managed-language benefits of memory management, type checking or buffer overrun protection, using pointer arithmetic, how do you make sure that[详细]
2022-12-08 01:37 分类:问答