Fix the check_fatal macro
authorMatt Caswell <matt@openssl.org>
Tue, 5 Dec 2017 13:37:26 +0000 (13:37 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 6 Dec 2017 14:56:28 +0000 (14:56 +0000)
commite1dd8fa00a1e06d27c8b024dac7657a8d8a9b451
tree5288ab019865c624993b5341015215c81bd6f91e
parent2894e9cb6de62baec5b17d4f248b4ff12eb62005
Fix the check_fatal macro

The check_fatal macro is supposed to only be called if we are already
expecting to be in the fatal state. The macro asserts that we are and
puts us into the fatal state if not.

This issue combined with the problem fixed in the previous commit meant
that the fuzzer detected a crash at a point in the processing when we
should have already been in the fatal state.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4847)
ssl/statem/statem.c