Menu

#108 Array nesting limit (Muf memory usage limit)

Crasher
open
9
2005-07-13
2002-02-09
sombre
No

: main
1 begin
{ over }list swap pop
repeat
;

It would be nice if there was a limit on the depth
arrays can be nested (tuneable param?) to prevent this
from gobbling up tons of memory ;>

(A side issue with this is that it also causes a stack
overflow if the muf program is set debug)

Discussion

  • Revar Desmera

    Revar Desmera - 2002-02-20
    • milestone: 100407 --> Crasher
    • priority: 5 --> 7
    • assigned_to: nobody --> revar
     
  • Revar Desmera

    Revar Desmera - 2002-02-20

    Logged In: YES
    user_id=6331

    Debug traces no no longer show the contents of nexted
    arrays, and indeed only show the first seven items in an
    array anyways. This, with a could buffer overflow fixes,
    takes care of the side issue you mention completely.

    I'm still working on a correct solution for muf program
    memory usage.

     
  • Revar Desmera

    Revar Desmera - 2002-05-28
    • summary: Array nesting limit --> Array nesting limit (Muf memory usage limit)
     
  • sombre

    sombre - 2002-05-28

    Logged In: YES
    user_id=57367

    It also crashes while freeing the array, so it's probably a fair
    assumption that any recursive operation on a very deeply
    nested array will crash fuzzball.

     
  • Wyld

    Wyld - 2005-07-13
    • priority: 7 --> 9
     

Log in to post a comment.