Re: bigint tests
[Thread Prev] | [Thread Next]
- Subject: Re: bigint tests
- From: "Mike" <tankf33der@xxxxxxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Mon, 15 Jul 2019 12:06:22 +0000
- To: myrddin-dev@xxxxxxxxxxxxxx, ori@xxxxxxxxxxxxxx
hi all,
As a result myrddin passed all my bigint tests over picolisp.
8h run, 20M loop, random bigints on +-/*%>><<
No problems, no leaks.
July 14, 2019 4:39 AM, ori@xxxxxxxxxxxxxx wrote:
>> hi,
>>
>> I've implement my bigtest tests for myrddin.
>> Found one crash so far.
>>
>> use std
>> const main = {
>> var a = std.get(std.bigparse("1111"))
>> std.bigshri(a,63)
>> std.put("{}\n", a)
>> }
>>
>> Code above returns 0, if std.bigshri(a,64) crash:
>>
>> 0x00000000004012fc: out of bounds access
>> Aborted
>>
>> Problem in bigshri():
>> /* blit over the base values */
>> for var i = 0; i < a.dig.len - off; i++
>> -> a.dig[i] = a.dig[i + off]
>> ;;
>> a.dig = a.dig[:a.dig.len - off]
>>
>> (mike)
>
> Also fixed. Thanks!
| Re: bigint tests | ori@xxxxxxxxxxxxxx |
- Prev by Date: Re: bigint tests
- Next by Date: [patch] implement std.unveil
- Previous by thread: Re: bigint tests
- Next by thread: [patch] implement std.unveil
- Index(es):