Add crash warning to 1989/robison
With invalid digits the program will crash. This was never fixed (nor should it be) but never noted either.
This commit is contained in:
1 parent
b1e1b3f7f9
commit
2d7cfef50c
2 files changed
+3
-1
No files matched your search
@@ -132,7 +132,7 @@ all: data ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
@echo "NOTE: This entry will likely dump core on invalid input."
|
@echo "NOTE: this entry will crash with numbers with non binary digits."
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ Yusuke!
|
|||||||
|
|
||||||
echo 100 / 100 | ./robison # <-- what happens here ?
|
echo 100 / 100 | ./robison # <-- what happens here ?
|
||||||
|
|
||||||
|
NOTE: this entry will crash with numbers with non binary digits.
|
||||||
|
|
||||||
## Judges' comments:
|
## Judges' comments:
|
||||||
|
|
||||||
Sites with punch card facilities will be happy to note that
|
Sites with punch card facilities will be happy to note that
|
||||||
|
|||||||
Reference in new issue
Block a user