From 2303452816b91db47f85f24b29f6d29ae875b457 Mon Sep 17 00:00:00 2001 From: mikera Date: Tue, 8 Oct 2024 09:30:49 +0100 Subject: [PATCH] Doc edits --- convex-core/src/main/java/convex/core/data/Cells.java | 2 +- convex-core/src/main/java/convex/core/data/Encoder.java | 2 +- convex-core/src/main/java/convex/core/data/Format.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/convex-core/src/main/java/convex/core/data/Cells.java b/convex-core/src/main/java/convex/core/data/Cells.java index e90a23bff..310e7c43d 100644 --- a/convex-core/src/main/java/convex/core/data/Cells.java +++ b/convex-core/src/main/java/convex/core/data/Cells.java @@ -265,7 +265,7 @@ public static void visitBranches(ACell a, Consumer visitor) { /** * Intern a Cell permanently in memory (for JVM lifetime). * - * SECURITY: do not do this for any generated structure from external sources. The could DoS your memory. + * SECURITY: do not do this for any generated structure from external sources. Attackers could DoS your memory. * * @param Type of Cell * @param value Value to intern diff --git a/convex-core/src/main/java/convex/core/data/Encoder.java b/convex-core/src/main/java/convex/core/data/Encoder.java index 94653da88..6a7e00213 100644 --- a/convex-core/src/main/java/convex/core/data/Encoder.java +++ b/convex-core/src/main/java/convex/core/data/Encoder.java @@ -4,7 +4,7 @@ import convex.core.store.AStore; /** - * Encoder for stores + * Encoder for CAD3 data / stores */ public class Encoder { diff --git a/convex-core/src/main/java/convex/core/data/Format.java b/convex-core/src/main/java/convex/core/data/Format.java index 025b9f4d1..74169bf2f 100644 --- a/convex-core/src/main/java/convex/core/data/Format.java +++ b/convex-core/src/main/java/convex/core/data/Format.java @@ -622,7 +622,6 @@ private static ANumeric readNumeric(byte tag, Blob blob, int offset) throws BadF // TODO Auto-generated method stub if (tag<0x19) return CVMLong.read(tag,blob,offset); if (tag == 0x19) return CVMBigInteger.read(blob,offset); - // Double is special, we enforce a canonical NaN if (tag == Tag.DOUBLE) return CVMDouble.read(tag,blob,offset); throw new BadFormatException(badTagMessage(tag));