From f2eb7014ea59e9d392bc8e326b0b0c9405543ef4 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Mon, 16 Mar 2020 21:10:20 +1100 Subject: [PATCH] Expand example/jsonptr memory safety comment --- example/jsonptr/jsonptr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/jsonptr/jsonptr.cc b/example/jsonptr/jsonptr.cc index dad552d3..12b66d33 100644 --- a/example/jsonptr/jsonptr.cc +++ b/example/jsonptr/jsonptr.cc @@ -34,8 +34,8 @@ trivially protected against certain bug classes: memory leaks, double-frees and use-after-frees. The core JSON implementation is also written in the Wuffs programming language -(and then transpiled to C/C++), which is memory-safe but also guards against -integer arithmetic overflows. +(and then transpiled to C/C++), which is memory-safe (e.g. array indexing is +bounds-checked) but also guards against integer arithmetic overflows. For defense in depth, on Linux, this program also self-imposes a SECCOMP_MODE_STRICT sandbox before reading (or otherwise processing) its input