From: Andy Chou <andy@coverity.com>
To: caml-list@inria.fr
Subject: Overflow causes crash in Int32 division
Date: Wed, 03 May 2006 18:37:07 -0700 [thread overview]
Message-ID: <44595AC3.5060400@coverity.com> (raw)
I've noticed that the following causes a crash on both the bytecode
interpreter and native code:
open Int32
open Printf
let _ = printf "%ld\n" (Int32.div Int32.min_int (-1l))
This doesn't appear to be documented, so I presume it's incorrect
behavior. Nativeint also seems to have the same problem. The built-in
int type doesn't seem to have the same problem. Int64 doesn't seem to
have a problem either.
This is on a 32-bit Windows platform.
-Andy
--
Andy Chou
Coverity, Inc.
185 Berry St. Suite 3600
San Francisco, CA 94107
Phone: 415-321-5203
Fax: 415-541-9521
reply other threads:[~2006-05-04 1:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44595AC3.5060400@coverity.com \
--to=andy@coverity.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox