summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
authorVibhav Pant <vibhavp@gmail.com>2022-12-20 21:29:54 +0530
committerVibhav Pant <vibhavp@gmail.com>2022-12-20 21:29:54 +0530
commit9fafeb2a66fe1cba8f3ad7662196e36ca0b1eca7 (patch)
treef716962001bc2e6c80c84c0f9fa19c73ba076c03 /src/data.c
parent8d6fb6498ab457e92b08e26203b585ba989a7844 (diff)
Ensure that we are not aset-ing Lisp records in purespace.
* src/data.c (Faset): Enforce that Lisp records passed to aset are impure with CHECK_IMPURE.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index c6b85e17bc2..7ad06a9faa5 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2619,6 +2619,7 @@ bool-vector. IDX starts at 0. */)
}
else if (RECORDP (array))
{
+ CHECK_IMPURE (array, XVECTOR (array));
if (idxval < 0 || idxval >= PVSIZE (array))
args_out_of_range (array, idx);
ASET (array, idxval, newelt);