Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
bf3ecb4d
Commit
bf3ecb4d
authored
5 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Unmarshal] fix for OCaml 4.08
parent
918500a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libraries/datatype/unmarshal.ml
+13
-1
13 additions, 1 deletion
src/libraries/datatype/unmarshal.ml
with
13 additions
and
1 deletion
src/libraries/datatype/unmarshal.ml
+
13
−
1
View file @
bf3ecb4d
...
@@ -472,13 +472,25 @@ let input_val ch t =
...
@@ -472,13 +472,25 @@ let input_val ch t =
let
clos
=
intern_rec
[]
t
in
let
clos
=
intern_rec
[]
t
in
return
stk
(
Obj
.
add_offset
(
Obj
.
repr
clos
)
ofs
)
return
stk
(
Obj
.
add_offset
(
Obj
.
repr
clos
)
ofs
)
|
0x12
(* CODE_CUSTOM *)
->
|
0x12
|
0x19
(* CODE_CUSTOM
(deprecated) or CODE_CUSTOM_FIXED
*)
->
let
id
=
read_customident
ch
in
let
id
=
read_customident
ch
in
let
v
=
read_custom
ch
id
in
let
v
=
read_custom
ch
id
in
let
dest
=
!
ctr
in
let
dest
=
!
ctr
in
ctr
:=
dest
+
1
;
ctr
:=
dest
+
1
;
return_block
stk
t
v
dest
return_block
stk
t
v
dest
|
0x18
(* CODE_CUSTOM_LEN *)
->
let
id
=
read_customident
ch
in
(* Note: CODE_CUSTOM_FIXED and CODE_CUSTOM_LEN has the length of the
payload statically computable, but contrary to the C code,
we don't check that the size matches. *)
let
_sz_32
=
read32u
ch
in
let
_sz_64
=
read64u
ch
in
let
v
=
read_custom
ch
id
in
let
dest
=
!
ctr
in
ctr
:=
dest
+
1
;
return_block
stk
t
v
dest
|
_
when
code
>=
0x80
(* PREFIX_SMALL_BLOCK *)
->
|
_
when
code
>=
0x80
(* PREFIX_SMALL_BLOCK *)
->
let
tag
=
code
land
0xF
in
let
tag
=
code
land
0xF
in
let
size
=
(
code
lsr
4
)
land
0x7
in
let
size
=
(
code
lsr
4
)
land
0x7
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment