Skip to content

Commit

Permalink
Doc edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Oct 8, 2024
1 parent 20be455 commit 2303452
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion convex-core/src/main/java/convex/core/data/Cells.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static void visitBranches(ACell a, Consumer<ACell> 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 <T> Type of Cell
* @param value Value to intern
Expand Down
2 changes: 1 addition & 1 deletion convex-core/src/main/java/convex/core/data/Encoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import convex.core.store.AStore;

/**
* Encoder for stores
* Encoder for CAD3 data / stores
*/
public class Encoder {

Expand Down
1 change: 0 additions & 1 deletion convex-core/src/main/java/convex/core/data/Format.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2303452

Please sign in to comment.