alberthdev / spasm-ng

SPASM-ng is a z80 assembler with extra features to support development for TI calculators.
GNU General Public License v2.0
97 stars 23 forks source link

Fuzzed Crashes #43

Open jacobly0 opened 7 years ago

jacobly0 commented 7 years ago

These inputs all cause spasm to segfault:

.echo >0
#macro >
a#macro a
b(
#define a a
 a
w("r(")
r(
.addinstr 0 0 0000000000000000000000000000

Note that the last one only crashes sometimes in hardened mode and occasionally corrupts malloc otherwise.

alberthdev commented 7 years ago

Updating this as I take a stab at each: