操作系统->数组越界(待完善)
工作中无意间发现了一段可能存在数组越界的代码, 就在本地仿者写了一段越界的小程序, 先记录下,待以后看操作系统知识的时候,再深入分析
1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(int argc, char *argv[]) 5 { 6 int DU[64] = {0}; 7 int i = 600; 8 printf("[1]i=%d\n", i); 9 DU[64] = 15; 10 printf("[2]i=%d\n", i); 11 return 0; 12 }
posted on 2018-07-27 18:33 LiveWithACat 阅读(425) 评论(1) 编辑 收藏 举报