Fix zero arg segfault in 2020/burton
I did not fix the strange output when more than one arg is specified nor do I think I should. I did not update Dave's comment that it will segfault on zero args nor do I think I should (instead I updated the To run section like I've done with the many others I've fixed).
This commit is contained in:
1 parent
e805f41d34
commit
0f89168936
2 files changed
+9
-5
No files matched your search
@@ -1,8 +1,8 @@
|
||||
# Best one-liner
|
||||
|
||||
Dave Burton
|
||||
<http://snox.net/ioccc>
|
||||
Twitter: @lv2jmp
|
||||
Dave Burton
|
||||
<http://snox.net/ioccc>
|
||||
Twitter: @lv2jmp
|
||||
|
||||
## To build:
|
||||
|
||||
@@ -16,7 +16,11 @@ make
|
||||
./prog arg ...
|
||||
```
|
||||
|
||||
NOTE: this entry will dump core if you do not specify an argument.
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) made this entry not
|
||||
segfault when no arg is specified though he notes that the author says it will
|
||||
segfault on zero args. He did NOT fix the strange results when more than one arg
|
||||
is specified. Thank you Cody for your assistance!
|
||||
|
||||
|
||||
## Try:
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
int main(int b,char**i){long long n=B,a=I^n,r=(a/b&a)>>4,y=atoi(*++i),_=(((a^n/b)*(y>>T)|y>>S)&r)|(a^r);printf("%.8s\n",(char*)&_);}
|
||||
int main(int b,char**i){if(1[i]){long long n=B,a=I^n,r=(a/b&a)>>4,y=atoi(*++i),_=(((a^n/b)*(y>>T)|y>>S)&r)|(a^r);printf("%.8s\n",(char*)&_);}}
|
||||
Reference in new issue
Block a user