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

Unix.single_write raises bogus exceptions under windows #4836

Closed
vicuna opened this issue Jul 15, 2009 · 1 comment
Closed

Unix.single_write raises bogus exceptions under windows #4836

vicuna opened this issue Jul 15, 2009 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 15, 2009

Original bug ID: 4836
Reporter: Dmitry Grebeniuk
Status: closed (set by @xavierleroy on 2009-07-15T12:20:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.1
Fixed in version: 3.11.2+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

file otherlibs/win32unix/write.c, function unix_single_write: the variable "DWORD err" is not initialized and is not modified in case of successful OS call. So, when the (unspecified) err's initial value is not zero, the "if (err)" condition is met, and exception Unix.Unix_error is raised.

@vicuna
Copy link
Author

vicuna commented Jul 15, 2009

Comment author: @xavierleroy

Well spotted. This is now fixed in the 3.11 release branch. Fix will go in 3.11.2.

@vicuna vicuna closed this as completed Jul 15, 2009
@vicuna vicuna added the bug label Mar 20, 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