Commit Graph

10 Commits

Author SHA1 Message Date
Michael Hansen
ff0c1450b4 Abort immediately when attempting to read past end of stream.
No consumers of readByte() were actually checking for EOF, so they would
all keep re-reading the same byte over and over again, potentially until the
process runs out of memory (ref #572).
2025-08-28 15:14:55 -07:00
Ruphane
9711a4abe5 Fix the pointer's behavior on getting buffer 2023-08-25 18:00:26 -07:00
Michael Hansen
8bb8386764 Fix some issues with formatted_print:
* Add a va_list version which can be correctly used by ivprintf (fixes pycdas output)
* Use a `const char*` format parameter to avoid the need for clang warning workarounds
* Make better use of return values.
2023-06-05 13:49:04 -07:00
Perceval Wajsbürt
c4c35fc531 Use C++ streams over C style IO 2023-06-02 01:12:59 +02:00
Michael Hansen
bf60a5831b Fix several undefined behavior issues identified by @nrathaus.
Fixes #147.
2018-01-28 15:37:44 -08:00
Michael Hansen
ad03ec3034 Fixes for large operands (> 0x7fff). Closes #34 2013-08-06 22:16:28 -07:00
Michael Hansen
f71d6d8d27 Fix for VS2012 re-ordering getByte() calls in Release mode. Fixes #23 2013-06-30 12:54:35 -07:00
Michael Hansen
f030a77767 Allow for output file override 2011-10-23 19:04:06 -07:00
Michael Hansen
98a50fd042 Added the rest of the marshalable types, and more info to the disassembly output (including a bytecode position counter to help with jump calculations) 2009-07-25 02:41:15 +00:00
Michael Hansen
da046a9a90 Code so far 2009-07-24 08:35:21 +00:00