Fix another segfault in 1998/schnitzi
If no arg was given to the program it would segfault also. Now it is effectively a no-op.
This commit is contained in:
1 parent
8ac5a8f823
commit
1071baceba
2 files changed
+5
-5
No files matched your search
@@ -28,9 +28,9 @@
|
||||
echo 324 >> data
|
||||
./sort < data
|
||||
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed a segfault in
|
||||
this entry. The problem was invalid data types. Thank you Cody for your
|
||||
assistance!
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed two segfaults in
|
||||
this entry. The first was caused by invalid data types. The second was triggered
|
||||
if one did not specify any arg. Thank you Cody for your assistance!
|
||||
|
||||
## Judges' comments
|
||||
|
||||
|
||||
@@ -52,5 +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){ O=r_; _d=V;
|
||||
x: (O)(); goto x; }
|
||||
main(int v,char **V){ if (V[1]) {O=r_; _d=V;
|
||||
x: (O)(); goto x; }}
|
||||
Reference in new issue
Block a user