Merge pull request #404 from xexyl/1990-westley-bugs-md

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-04-11 11:01:49 -07:00
commit fa6da46ac5
3 files changed
+9 -4

No files matched your search

+2
View File
@@ -128,6 +128,8 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c ${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."
${CC} ${CFLAGS} $< -o $@ ${LIBS} ${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable # alternative executable
+5 -2
View File
@@ -24,8 +24,11 @@ systems. It had `1s` in places for a short int which was changed to just `1`.
Since it's instructional to see the differences he has provided an alternate Since it's instructional to see the differences he has provided an alternate
version with the original code. See below. Thank you Cody for your assistance! version with the original code. See below. Thank you Cody for your assistance!
NOTE: this entry will segfault without an arg and will enter an infinite loop if NOTE: this program will enter an infinite loop if input is not a number > 0.
input is not a positive number.
### INABIAF - it's not a bug it's a feature :-)
NOTE: this entry will very likely crash or do something else without an arg.
## Try: ## Try:
+2 -2
View File
@@ -537,8 +537,8 @@ fixing so it should not be fixed.
## STATUS: known bug - please help us fix ## STATUS: known bug - please help us fix
However a negative number will make the program enter an infinite loop. This However any input not a number > 0 will make the program enter an infinite loop.
will be fixed in time but it's noted here for now. This will be fixed in time but it's noted here for now.
# 1991 # 1991