- 博客(7)
- 收藏
- 关注
原创 stack overflow[part2]
Target program:// vulnerable.c #include <stdio.h> #include <stdlib.h>int main(int argc, char *argv[]) { char searchstring[100]; if(argc > 1) strcpy(searchstring, ar
2017-06-19 21:46:35 531
原创 stack overflow[part1]
C program:#include <stdio.h> #include <stdlib.h> #include <string.h> int check_authentication(char *password) { char password_buffer[16]; int auth_flag = 0; strcpy(password_buffer, passwor
2017-06-18 12:42:02 558
转载 tail recursion
traditional recursion: perform recursion first, then take the return value of the recursive call and calculate the result. You don’t get the result of your calculation until you have returned from e
2017-06-15 11:30:40 590
原创 gdb and C memory layout
A simple C program:#include <stdlib.h> int main() { int i; for (i = 0; i < 10; ++i) printf("Hello_world!\n"); return 0; }lyu@ubuntu:~/Desktop/work$ gdb -q ./a.out Reading symbols fr
2017-06-10 16:52:05 631
原创 [leetcode]Insert Interval
57. Insert IntervalGiven a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their st
2017-06-08 14:12:29 267
原创 [leetcode]Jump Game II
45. Jump Game IIGiven an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Yo
2017-06-07 21:33:40 313
原创 C++ virtual table
Best reference explaining virtual table and dynamic binding 1.
2017-06-01 22:57:53 293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人