diff --git a/1990/westley/Makefile b/1990/westley/Makefile
index 28256e308..8f614dfd1 100644
--- a/1990/westley/Makefile
+++ b/1990/westley/Makefile
@@ -137,8 +137,7 @@ all: data ${TARGET}
sandwich supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
- @echo "NOTE: this will very likely crash without an arg and will enter an infinite loop"
- @echo "with an arg that is not a number > 0."
+ @echo "NOTE: this will very likely crash without an arg"
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
# alternative executable
diff --git a/1990/westley/README.md b/1990/westley/README.md
index 27b6fe30c..7b9db3580 100644
--- a/1990/westley/README.md
+++ b/1990/westley/README.md
@@ -5,6 +5,18 @@
```
+### Bugs and (Mis)features:
+
+The current status of this entry is:
+
+```
+ STATUS: INABIAF - please **DO NOT** fix
+```
+
+For more detailed information see [1990/westley in bugs.html](../../bugs.html#1990_westley).
+
+
+
## To use:
```
diff --git a/1990/westley/index.html b/1990/westley/index.html
index 979bdf3ef..bae4369f0 100644
--- a/1990/westley/index.html
+++ b/1990/westley/index.html
@@ -403,6 +403,10 @@ Location: US - United States of America
The current status of this entry is: For more detailed information see 1990/westley in bugs.html. The number should be greater than 0.To build:
+ make allBugs and (Mis)features:
+
+ STATUS: INABIAF - please **DO NOT** fixTo use:
./westley <number>theorem_bkp or fibonacci the program
will enter an infinite loop, printing 0 over and over again; another condition
where this occurred was fixed but this one should not be fixed. Thank you.
Although Cody fixed this to not enter an infinite loop if the arg (converted to +a number) is < 0 the lack of an arg check at all was kept in to make it like the +original. The reason for the < 0 check is it floods the screen.
If the maze file cannot be opened, either because the path specified does not @@ -1015,9 +1024,9 @@ exist or because the default (whatever the source file was at compilation time) file does not exist in the directory, this program will very likely crash.
This is a feature, not a bug.
There is a very simple way to always win. The program doesn’t catch you and as @@ -1034,7 +1043,7 @@ when you’re cheating it ends up winning! Can you figure that out as well?
The author stated that if the file cannot be opened then it will print a system @@ -1195,16 +1204,16 @@ than that. For instance this is what it looks like with clang:
When your own checkmate is imminent it prints "Har har" but does not exit so
it can ‘rub your nose in defeat’, as the author puts it. You will have to exit
it yourself through ctrl-c or killing it in some other fashion.
Cody improved the usability of this program by making it so that as long as the @@ -1230,7 +1239,7 @@ not a misunderstanding).
The author stated that:
@@ -1253,7 +1262,7 @@ system), this entry just shows a blank screen.This entry relied on a bug in gcc that was fixed with gcc version 2.3.3. This @@ -1263,7 +1272,7 @@ the index.html file for details.
Although the code checks if the file can be opened or not, badly formatted files @@ -1273,7 +1282,7 @@ through ctrl-c or such.
If the file cannot be opened it will very likely segfault. This should not be @@ -1299,7 +1308,7 @@ question you might cause an error. For instance don’t do this:
Of course if you do something like:
What is 'foo'?
it will work fine.
-No spaces are allowed in the expression.
@@ -1315,7 +1324,7 @@ notd-46.
When you initiate shooting via the s command you immediately lose an arrow
@@ -1325,7 +1334,7 @@ pit room you will end up dying even though you didn’t explicitly move there.
Cody Boone Ferguson fixed this to compile @@ -1428,7 +1437,7 @@ compiled!
This program will likely crash if the source code file (by the name of the file @@ -1475,7 +1484,7 @@ doesn’t break something else.
This did not originally compile under macOS and after it did compile under @@ -1507,7 +1516,7 @@ it would be good if it was fixed.
This program expects a POSITIVE number. If you specify a negative number it will @@ -1572,7 +1581,7 @@ almost be done except that some of the output of the
If X is not running this program will very likely crash or do something funny. @@ -1615,7 +1624,7 @@ to the page as well! You’ll have IOCCC fame for reviving a pootifier! :-)
A point worth considering is that as the number passed into the program gets @@ -1772,7 +1781,7 @@ on the stack at that point:
5which might (?) suggest that the + operator is unimplemented. Unfortunately it
has been many years since I have used perl and I was never a guru either.
The author states that in perl < 5.6.0 there is a bug with a core dump in what
they said is in Perl_sv_upgrade. As this is documented it is not considered a
bug to be fixed. For the curious this will crash in macOS. Cody notes that the
@@ -1814,7 +1823,7 @@ of 92 warnings! Nonetheless neither works okay and both crash.
This program does not do what you might think it does! Running it like:
@@ -1832,7 +1841,7 @@ make a pull request.If DISPLAY is not set the program will very likely crash, do something strange
@@ -1846,7 +1855,7 @@ fire! :-) ).
Cody Boone Ferguson fixed this so that it @@ -1865,7 +1874,7 @@ elves of Imladris :-(
This program will crash without an arg.
This program deliberately crashes if it loses (which is what it aims to do).
@@ -1942,7 +1951,7 @@ appreciate your help!Sometimes when one player presses q it will result in broken pipe on the other
@@ -1960,7 +1969,7 @@ set. In other words both have to be ASCII or EBCDIC - not one of each.
This program will very likely crash or do something unexpected if you do not @@ -1976,14 +1985,14 @@ wanted to install it as a tool but this is missing.
The glob pattern must match the whole string. See the author’s comments for details and a workaround.
There’s also no way to escape meta characters.
The current (Makefile was modified to try and fit into the current IOCCC build environment.
-See known features in the index.html for things that are not bugs but documented (mis)features.
The author stated that:
@@ -2175,7 +2184,7 @@ things that are not bugs but documented (mis)features.The generated code will very likely segfault or do something not intended if not @@ -2188,7 +2197,7 @@ given the right args. See the index.html file for the correct syntax.
This program sometimes will create unsolvable puzzles :-) just to hook you.
@@ -2202,7 +2211,7 @@ dimensions. Try 100 100 100 for instance and see what happens!
This entry will very likely segfault or do something strange if the source code @@ -2211,7 +2220,7 @@ does not exist.
The author states:
@@ -2245,7 +2254,7 @@ for running itself.Cody Boone Ferguson notes that, though @@ -2259,7 +2268,7 @@ website itself.
The author stated the below points of interest.
@@ -2300,7 +2309,7 @@ with at leastcomputer.tofu input file:
The string specified must be <= 42 characters and may only consist of the @@ -2309,7 +2318,7 @@ with possibly corrupt GIF files.
This program will likely crash or do something funny without an arg.
@@ -2328,12 +2337,12 @@ but you are welcome to try and fix it. provide it as an additional alt version. Fixing this is very likely to be very challenging and in some systems it will not be possible to fix but you are welcome to try and fix it if you wish to! -Incorrect formulas will ungracefully crash the program.
This program will likely crash or do something funny if the file cannot be @@ -2341,7 +2350,7 @@ opened. The number of args is however checked.
The author stated:
@@ -2358,7 +2367,7 @@ opened. The number of args is however checked.Cody Boone Ferguson fixed this program to @@ -2405,7 +2414,7 @@ case-sensitive.
For a great amount of data points the program will crash, depending on your @@ -2428,7 +2437,7 @@ bins at the edges.
instead being something else entirely. The Internet Wayback Machine, although it archived it, did not load scripts. Do you know if the domain was moved? Do you have an archive or mirror? Please provide us it! Thank you. -The author states the following:
Bad input (e.g. nonexistent files, non-numeric number of iterations, etc.) @@ -2441,7 +2450,7 @@ tends to result in empty output.
The author stated that there are a number of features and limitations. As the @@ -2451,7 +2460,7 @@ remarks instead.
This program will very likely crash or do something funny without an arg.
@@ -2620,7 +2629,7 @@ defined.The author stated that the program will crash if no argument is passed to the @@ -2634,7 +2643,7 @@ fire :-)
The author stated:
@@ -2643,7 +2652,7 @@ fire :-)The author stated:
@@ -2676,7 +2685,7 @@ fire :-)The author stated:
@@ -2690,7 +2699,7 @@ doesn’t make it possible to lock drawing to the display refresh rate.)The author stated:
@@ -2711,7 +2720,7 @@ doesn’t make it possible to lock drawing to the display refresh rate.)The author stated that the program will crash if no argument is passed to the @@ -2727,7 +2736,7 @@ fire :-)
The author stated:
@@ -2747,7 +2756,7 @@ and endianness conversion would make the source too large for IOCCC rule 2).This program will possibly crash or draw something strange with 0 args. Then @@ -2766,7 +2775,7 @@ used.
From the author:
@@ -2782,7 +2791,7 @@ section.From the author:
@@ -2795,14 +2804,14 @@ such asC2E2.
Invalid input files will very likely crash the program.
This program will not terminate on its own; you must kill hou (but not Qiming
@@ -2810,7 +2819,7 @@ Hou :-) ) yourself. This should not be fixed.
The author reminds us that if you kill the program you will have to wait a short @@ -2827,7 +2836,7 @@ it out as a known limitation it is not a bug but a feature.
The author noted that in macOS the colours might be wrong. They gave a solution. @@ -2851,7 +2860,7 @@ player become bigger, stay away from blocks!
This program will very likely crash if no arg is given.
@@ -2892,7 +2901,7 @@ rely on the entry as the below shows. One should be able to do:The author stated:
@@ -2917,7 +2926,7 @@ result. Error messages become garbled, though.The program doesn’t look at the header of files so if it’s passed something hat @@ -2926,7 +2935,7 @@ is not compressed data it’s likely to crash.
The program assumes that The author wrote: When you run it on a JSON file you will see something like:EOF is -1. This can be fixed but at this time it is
@@ -2959,7 +2968,7 @@ use 8 * sizeof(typ) bits per place. It does not work when CHA
2018/algmyr
STATUS: INABIAF - please DO NOT fix
+STATUS: INABIAF - please DO NOT fix
Source code: 2018/algmyr/prog.c
Information: 2018/algmyr/index.html
2018/hou
STATUS: INABIAF - please DO NOT fix
+STATUS: INABIAF - please DO NOT fix
Source code: 2018/hou/prog.c
Information: 2018/hou/index.html
where [] is the cursor. When this happens if you hit enter (this is necessary
or else it’ll happen again) and then exit again (ctrl-e) and run prog again
it’ll be okay.
The author stated that if you make a typo it can happen that the boot loader can crash and halt. If this is the case type ctrl-e to quit the emulator and try again.
@@ -3018,7 +3027,7 @@ in the case of compiled code it won’t be executable).The author wrote the following:
@@ -3068,7 +3077,7 @@ this program has nothing to do with a hand.Certain input can crash this program. The file @@ -3076,7 +3085,7 @@ this program has nothing to do with a hand.
The author pointed out that some implementations of wc(1) show different
@@ -3084,7 +3093,7 @@ values but his implementation matches that of macOS and FreeBSD.
Cody Boone Ferguson fixed the scripts so @@ -3116,7 +3125,7 @@ ideal if this was not the case.
There are two things to be aware of with this entry.
@@ -3145,7 +3154,7 @@ in the directory:As a backtrace quine this entry is SUPPOSED to segfault so this should not be @@ -3153,7 +3162,7 @@ touched either.
The author stated the following:
@@ -3183,7 +3192,7 @@ touched either.The author wrote that there are a number of differences from what one might @@ -3193,7 +3202,7 @@ remarks in the sections Syntax and
The author wrote that if you decide to change networks or use a different input @@ -3213,7 +3222,7 @@ a crash.
This program will not validate input so it might fail or get stuck if invoked @@ -3222,7 +3231,7 @@ erroneously.
The author noted that if the program runs out of memory it is likely to crash.
@@ -3237,7 +3246,7 @@ ignored except line feeds (preserved) and tabs (expanded to 8 spaces).’This entry is known to crash if no arg is specified. Although easy to fix it is @@ -3248,7 +3257,7 @@ either. But can you figure out why this happens?
The author stated that bad things happen if the entered move is outside of the @@ -3262,7 +3271,7 @@ move.
There are some things that might appear to be bugs but are actually features or @@ -3272,7 +3281,7 @@ things that are misinterpreted as bugs. See the
The author noted that the program only supports WAV files that have @@ -3281,7 +3290,7 @@ audio channels.
The author listed the following limitations:
diff --git a/bugs.md b/bugs.md index 7bbe9759f..42007d628 100644 --- a/bugs.md +++ b/bugs.md @@ -884,6 +884,20 @@ will enter an infinite loop, printing 0 over and over again; another condition where this occurred was fixed but this one should not be fixed. Thank you. +He also changed the argc to be an int, not a char, even though it might
often be the same (this in particular was done for clang).
He also fixed the code to not enter an infinite loop if arg is a number not > 0 -and to not crash if no arg is specified. This was done during a time it was -deemed a problem to be fixed.
-NOTE: the alternate code did NOT have arg checks added as it is actually a copy of the -original code.
+He also fixed the code to not enter an infinite loop if arg is a number not > 0. +To be more like the original the number of args passed to the program has not +been fixed so that if one passes no arg it will still likely crash.
Cody also added the try.sh script.