Undo two checks in 1998/schnitzi

As part of the redefinition of INABIAF two segfault fixes were undone.
These are noted in the Makefile and README.md file.

One fix was necessary and that has been left alone.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-07 10:46:28 -07:00
1 parent 4e6630575c
commit ad9efe502a
3 files changed
+7 -9

No files matched your search

+1
View File
@@ -130,6 +130,7 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "NOTE: this program will crash on invalid input."
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
+4 -6
View File
@@ -28,12 +28,10 @@
echo 324 >> data
./sort < data
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed three segfaults in
this entry. The first was caused by invalid data types. The second was triggered
if one did not specify any arg. The third happened if the arg was had any
characters that were not the digits 1 - 9 (if it started with 0 it could work as
long as another digit followed it and there were no other non-digits). Thank you
Cody for your assistance!
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed invalid data
types which prevented this entry from working. There are two other segfaults
that should not be fixed and they are discussed in [bugs.md](/bugs.md). Thank
you Cody for your assistance!
NOTE: the larger the number the number of lines of output can become
substantially higher as well. Doing `./schnitzi 9` will actually print 771999
+2 -3
View File
@@ -52,6 +52,5 @@ void x_(){ O=g; *r=y[k-2]; _=r; j=o_; }
void d (){ O=g; *r=y[k]; _=r; k=k+1; m=k<z; w=_t; l=p_; j=p; }
void y_(){ O=g; *r=x[17][1]+k; _=r; j=q_; }
void r_(){ O=_b; _=x[17]; s=(char**)_d; s=s+1; i=*s; q=0; }
main(int v,char **V){ if (V[1]) {if(atoi(V[1])!=0) {
q=0; O=r_; _d=V;
x: (O)(); goto x; }}}
main(int v,char **V){ O=r_; _d=V;
x: (O)(); goto x; }