Issue 14 in ocaml-extlib: String.nsplit stack overflow

2 views
Skip to first unread message

codesite...@google.com

unread,
Jan 18, 2010, 10:58:58 AM1/18/10
to ocaml-extlib-...@googlegroups.com
Status: New
Owner: ----

New issue 14 by ygrekheretix: String.nsplit stack overflow
http://code.google.com/p/ocaml-extlib/issues/detail?id=14

What steps will reproduce the problem?

Objective Caml version 3.11.0

# #load "extLib.cma";;
# open ExtLib;;
# String.nsplit "qwerty" "";;
Stack overflow during evaluation (looping recursion?).
#

What is the expected output? What do you see instead?
Ideally [String.find s sub] should raise Invalid_string when sub is empty
string. But currently it returns 0. So for backwards compatibility the
check should be performed in String.split or String.nsplit.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Mar 6, 2011, 9:12:10 AM3/6/11
to ocaml-extlib-...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 14 by ygrekher...@gmail.com: String.nsplit stack
overflow
http://code.google.com/p/ocaml-extlib/issues/detail?id=14

Fixed in r384

Reply all
Reply to author
Forward
0 new messages