diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-12 14:19:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-12 14:19:01 +0000 |
commit | a0500c3d4259db15e5b11c0d7cded19840efa3e5 (patch) | |
tree | 1ea318c3be442230bd17a32f9e47ff68e7e47449 /regress/eqn/unary/sqrt.in | |
parent | 751954a95b11620a0729815eee5feeaa166a265c (diff) | |
download | mandoc-a0500c3d4259db15e5b11c0d7cded19840efa3e5.tar.gz mandoc-a0500c3d4259db15e5b11c0d7cded19840efa3e5.tar.zst mandoc-a0500c3d4259db15e5b11c0d7cded19840efa3e5.zip |
Do not access a NULL pointer if a matrix or square root are empty.
Crashes found by tb@ with afl(1).
Diffstat (limited to 'regress/eqn/unary/sqrt.in')
-rw-r--r-- | regress/eqn/unary/sqrt.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/eqn/unary/sqrt.in b/regress/eqn/unary/sqrt.in index 359c3d7b..b416da7c 100644 --- a/regress/eqn/unary/sqrt.in +++ b/regress/eqn/unary/sqrt.in @@ -1,4 +1,4 @@ -.Dd October 10, 2014 +.Dd February 12, 2017 .Dt UNARY-SQRT 1 .Os OpenBSD .Sh NAME @@ -7,6 +7,6 @@ .Sh DESCRIPTION initial text .EQ -r = sqrt { x sup 2 + y sup 2 } +r = sqrt { x sup 2 + y sup 2 } + sqrt { } + sqrt .EN final text |