diff --git a/asm/dump_datazone b/asm/dump_datazone index 83aecba..df44128 100755 --- a/asm/dump_datazone +++ b/asm/dump_datazone @@ -238,9 +238,9 @@ sub validate_pointer { my $db = shift; my $val = shift; - # Check it is aligned to 32bits - # FIXME - compare against db->{sizes}{align}, not hardcoded - if (!$val & 0x3) { + # Check it is correctly aligned + # FIXME - this only works for binary values of alignment + if (($val & ($db->{sizes}{align}-1)) != 0) { return undef; }