scientific.e

new topic     » goto parent     » topic index » view thread      » older message » newer message

scientific_to_atom() crashed with an input of "1"

slice upper index is less than 0 (-1) 
    s = {49'1'}
    dp = 0
    e = 0
    exp = 1
    int_bits = <no value>
    frac_bits = <no value>
    mbits = <no value>
    ebits = <no value>
    sbits = {0}

Line 278 is:
	s = s[1..e-1] - '0

Just seems that non-scientific input should be rejected.

Moving on...

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu