计算机系统
文章平均质量分 88
简单入门
&一派湖言.
这个作者很懒,什么都没留下…
展开
-
缓冲区保护机制
问题描述如下程序pwd.c用于判断输入的密码是否正确#include <stdio.h>#include <stdlib.h>#include <string.h>#define PASSWORD "1234567"int verify(char *password){int auth;char buffer[8];auth = strcmp(password, PASSWORD);strcpy(buffer, password原创 2022-04-10 19:00:44 · 1300 阅读 · 0 评论 -
GDB调试以及入门指令
Gedit 文本编辑器 touch test.c 创建 gedit test.c 文本打开打开文件目录 cd 文件夹gcc test.c -o test 编译形成test可执行文件(没有明确后缀)./test 运行sudo cdmod test 777 运行权限 编译 gcc -g test.c -o testgdb test /gdb -q test / gdb -q + file test 启动调试GDB常用的调试命令 (...原创 2022-03-01 11:44:45 · 1818 阅读 · 0 评论