Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

byterun/startup.c lacks code checksum initialization #5660

Closed
vicuna opened this issue Jun 21, 2012 · 2 comments
Closed

byterun/startup.c lacks code checksum initialization #5660

vicuna opened this issue Jun 21, 2012 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Jun 21, 2012

Original bug ID: 5660
Reporter: @db4
Status: closed (set by @xavierleroy on 2015-07-24T08:39:05Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Fixed in version: 4.00.0
Category: runtime system and C interface

Bug description

It's needed for Marshal.Closures to be safe. Without is Marshal.from_* functions just crash instead of raising (Failure "input_value: code mismatch") if the code is changed.

The patch is attached.

File attachments

@vicuna
Copy link
Author

vicuna commented Jun 21, 2012

Comment author: @alainfrisch

Thanks, well spotted!

However, caml_code_md5 does not seem to be used any more (trunk and 4.00 branches). Cf this commit:

http://caml.inria.fr/cgi-bin/viewvc.cgi?view=revision&revision=12229

Can you check if the problem is still present on those branches (and if so, maybe update your patch)?

Alain

@vicuna
Copy link
Author

vicuna commented Jul 29, 2012

Comment author: @xavierleroy

After reviewing the new code checksumming infrastructure introduced by commit 12229, I am pretty sure the issue is already fixed in 4.00.0 and in trunk. I'm marking this PR as resolved; feel free to reopen if the problem is still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant