From 102675d4dd8ac55588715a0bebf88ba5dbd37da0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 30 Oct 2023 06:34:57 -0700 Subject: [PATCH] Fix 1992/buzzard.1 - arg check --- 1992/buzzard.1/README.md | 14 -------------- 1992/buzzard.1/buzzard.1.c | 2 +- bugs.md | 10 ---------- thanks-for-fixes.md | 4 ++++ 4 files changed, 5 insertions(+), 25 deletions(-) diff --git a/1992/buzzard.1/README.md b/1992/buzzard.1/README.md index 8abd65c2b..5f8ae55d2 100644 --- a/1992/buzzard.1/README.md +++ b/1992/buzzard.1/README.md @@ -1,9 +1,6 @@ # Most Obfuscated Algorithm Sean Barrett\ -Software Construction Company\ -430 Southwest Parkway, #1906\ -College Station, TX 77840\ US @@ -14,17 +11,6 @@ make all ``` -### Bugs and (Mis)features - -The current status of this entry is: - -``` -STATUS: known bug - please help us fix -``` - -For more detailed information see [1992 buzzard.1 in bugs.md](/bugs.md#1992-buzzard.1). - - ## To use: ```sh diff --git a/1992/buzzard.1/buzzard.1.c b/1992/buzzard.1/buzzard.1.c index 9dfcbf146..bdf9574a6 100644 --- a/1992/buzzard.1/buzzard.1.c +++ b/1992/buzzard.1/buzzard.1.c @@ -1,7 +1,7 @@ #define A(c,a,b) t=b;t+=a;_(c) #define B(b,a) P(u,a)t=0;t-=a;R t+=u;t+=1;t/=2;_(b) #define b(x) x(g) -#define C ;main(argc,argv)char**argv;{for(;!w;){q=0;l +#define C ;main(argc,argv)char**argv;{if(argc<3)exit(1);for(;!w;){q=0;l #define c(y) x #define D(c,a,b) t=a;t/=b;_(c) #define d(x) S(x,x,1) diff --git a/bugs.md b/bugs.md index 5beb23a03..e06a9c44b 100644 --- a/bugs.md +++ b/bugs.md @@ -688,16 +688,6 @@ possibility. Can you find out how? # 1992 -## 1992 buzzard.1 - -### STATUS: known bug - please help us fix -### Source code: [1992/buzzard.1/buzzard.1.c](1992/buzzard.1/buzzard.1.c) -### Information: [1992/buzzard.1/README.md](1992/buzzard.1/README.md) - -This entry will crash without enough args (2). - -If you want to try and fix this (mis)feature, you are welcome to try. - ## 1992 kivinen diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index d34d71cb5..7be29ddfd 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1131,6 +1131,10 @@ one must keep the `Y[strlen(Y)-1]='\0';` part and keep it there. This is a complex change due to the way the program and Makefile generate additional tools. +## [1992/buzzard.1](1992/buzzard.1/buzzard.1.c) ([README.md](1992/buzzard.1/README.md)) + +Cody added a check for the right number of args, exiting 1 if not enough (2) +used. ## [1992/gson](1992/gson/gson.c) ([README.md](1992/gson/README.md]))