[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Bounds checking in 0.9.22?

From: charlesrandall4-tinycc
Subject: [Tinycc-devel] Bounds checking in 0.9.22?
Date: Wed, 10 Nov 2004 20:59:33 -0800 (PST)

All five of the examples from the documentation
segfault at runtime when compiled with "-b". I was
expecting runtime error messages of some type.

Is this what is expected?

Looking at bound_error() in bcheck.c I see that the
passed in error message isn't printed.

However, even with this change appended below all I
get is segfaults at runtime. No error messages.


--- backup/bcheck.c     2004-11-10 21:50:02.000000000
+++ bcheck.c    2004-11-10 21:51:24.000000000 -0700
@@ -143,6 +143,7 @@
 static void bound_error(const char *fmt, ...)
     __bound_error_msg = fmt;
+    printf("%s\n", __bound_error_msg);
     *(int *)0 = 0; /* force a runtime error */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]