![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
「已注销」
这个作者很懒,什么都没留下…
展开
-
C++ 语法时,编译器做了什么(1) new delete malloc free
直接看反汇编,手动翻译一下NEW31: Person* p = new Person();0040105D push 40040105F call operator new (004012b0)00401064 add esp,400401067 mov dword ptr [ebp-18h],eax0040106A mov dword ptr [ebp-4],000401071 cmp dword ptr [ebp-18h],000401075 je main+54h原创 2020-05-25 10:08:40 · 237 阅读 · 0 评论 -
NULL--print()
按我的理解是不能运行的//错误理解struct Person { int x ; void Fn_1() { printf("Person:Fn_1()\n"); } void Fn_2() { x = 10; printf("Person:Fn_2()%x\n"); } }; ...原创 2020-05-21 16:00:24 · 215 阅读 · 0 评论 -
c++ string 源码分析
菜鸡的我当酱油去了ctf,re的第一题就把我整懵了ida警告Unexpected entries in the PLT stub.The file might have been modified after linking.大致就是PLT 被修改了解决方法我能想到的有二:一:修复PLT表//本菜鸡不会二:直接动调//莽就完事了跟到源码里使用了一堆0x20大小的栈空间//我刚开始以...原创 2020-05-06 10:52:38 · 3876 阅读 · 0 评论