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

Off-by-one malloc() error in set_window_title #8471

Closed
vicuna opened this issue Feb 4, 2004 · 1 comment
Closed

Off-by-one malloc() error in set_window_title #8471

vicuna opened this issue Feb 4, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 4, 2004

Original bug ID: 2154
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Berke Durak
Version: 3.07
OS: Debian/unstable under Linux 2.6.1
Submission from: congruence.net1.nerim.net (213.41.151.68)

In function gr_set_window_title, file otherlibs/graph/open.c, line 241 :
window_name=stat_alloc(strlen(String_val(n))) should be replaced by
window_name=stat_alloc(strlen(String_val(n))+1).

@vicuna
Copy link
Author

vicuna commented Feb 4, 2004

Comment author: administrator

Full_Name: Berke Durak
Version: 3.07
OS: Debian/unstable under Linux 2.6.1
Submission from: congruence.net1.nerim.net (213.41.151.68)

In function gr_set_window_title, file otherlibs/graph/open.c, line 241 :
window_name=stat_alloc(strlen(String_val(n))) should be replaced by
window_name=stat_alloc(strlen(String_val(n))+1).

Thank you for your interest in Caml and your very precise bug report
and correction suggestion.

This bug has already been corrected (exactly as you suggest to correct
it) into the working sources of the compiler.

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/

@vicuna vicuna closed this as completed Feb 5, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant