Skip to content

Commit

Permalink
Merge pull request #169 from avsm/master
Browse files Browse the repository at this point in the history
release 3.1.0
  • Loading branch information
avsm authored Jul 12, 2017
2 parents ea1e48d + e9f58cc commit d38801d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v3.1.0 2017-07-11
v3.1.0 2017-07-12
-----------------

- Fix arithmetic overflow in `Cstruct.lenv` and `copyv` (#159 by @yallop)
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

7 changes: 4 additions & 3 deletions lib/cstruct.mli
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ val byte_to_int : byte -> int
(** Convert a byte to an integer *)

val check_bounds : t -> int -> bool
(** [check_bounds cstr len] is [true] if [cstr.buffer]'s size is
greater or equal than [len], [false] otherwise. *)
(** [check_bounds cstr len] is [true] if [len] is a non-negative integer and
[cstr.buffer]'s size is greater or equal than [len] [false] otherwise.*)

val check_alignment : t -> int -> bool
(** [check_alignment cstr alignment] is [true] if the first byte stored
Expand Down Expand Up @@ -347,7 +347,8 @@ val split: ?start:int -> t -> int -> t * t
extracted from [cstr] at offset [start] (default: 0) of length
[len] as first element, and the rest of [cstr] as second
element.
@raise Invalid_argument if the offset exceeds the cstruct length *)
@raise Invalid_argument if [start] exceeds the cstruct length,
or if there is a bounds violation of the cstruct via [len+start]. *)

val to_string: t -> string
(** [to_string t] will allocate a fresh OCaml [string] and copy the
Expand Down

0 comments on commit d38801d

Please sign in to comment.