
C++
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ 语法时,编译器做了什么(1) new delete malloc free
直接看反汇编,手动翻译一下 NEW 31: Person* p = new Person(); 0040105D push 4 0040105F call operator new (004012b0) 00401064 add esp,4 00401067 mov dword ptr [ebp-18h],eax 0040106A mov dword ptr [ebp-4],0 00401071 cmp dword ptr [ebp-18h],0 00401075 je main+54h原创 2020-05-25 10:08:40 · 272 阅读 · 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 · 271 阅读 · 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 · 4060 阅读 · 0 评论