Closed Apocalyptic0 closed 1 year ago
https://github.com/HUSTSeclab/software-security-dojo/blob/93f223b6d5e8a2bd407a7944b252f4da8f35cc4d/buffer-overflow/level-2-1/buffer-overflow-level2.1.c#L176C41-L176C55 176 ((void () (void content))book->show)(book->content); 题目的提示是修改book->name,这里本来应该是 176 ((void () (void content))book->show)(book->name); 虽然说甚至不用溢出还更简单了~
Nice issue! Solved here.
https://github.com/HUSTSeclab/software-security-dojo/blob/93f223b6d5e8a2bd407a7944b252f4da8f35cc4d/buffer-overflow/level-2-1/buffer-overflow-level2.1.c#L176C41-L176C55 176 ((void () (void content))book->show)(book->content); 题目的提示是修改book->name,这里本来应该是 176 ((void () (void content))book->show)(book->name); 虽然说甚至不用溢出还更简单了~