Fix buffer overflow in linear regression.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Jun 2020 05:17:06 +0000 (07:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Jun 2020 05:17:03 +0000 (07:17 +0200)
commit95008dd8d8a668c4e7163486835e32d1755b8269
tree559cc6ff77a7305158d52fd29c70bd6df39e0d4f
parentd90a738745006b2696994bec344c160fca1f755b
Fix buffer overflow in linear regression.

When the dependent variable and the indepdendent variable
are one and the same (a rather pointless situation), a buffer overflow
would occur.  This change fixes that.

Reported by: Andrea Fioraldi

Fixes bug: #58599
src/language/stats/regression.c