tmbinc / bgrep

Binary Grep
http://debugmo.de/2009/04/bgrep-a-binary-grep/
368 stars 57 forks source link

Segmentation fault #18

Open dududuguo opened 6 months ago

dududuguo commented 6 months ago

$ ./bgrep -B 23 Segmentation fault

One parameter file is missing, and a Segmentation fault occurs. Since char *h = argv[1]; argv[1] does not exist. Adding a check is a good option. Thank you!