prog_argv and rts_argv now contain *copies* of the args passed to
authorSimon Marlow <marlowsd@gmail.com>
Wed, 25 May 2011 09:00:29 +0000 (10:00 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 25 May 2011 12:09:47 +0000 (13:09 +0100)
commita6e8418a71b14ef85ee7134be654689b17765f03
tree8094503174122b76e574baadcf02f046fd7732df
parentf61d53d322cdf81a1cfa09cf4a4af4198611bcd5
prog_argv and rts_argv now contain *copies* of the args passed to
setupRtsFlags(), rather than sharing the memory.  Previously if the
caller of hs_init() passed in dynamically-allocated memory and then
freed it, random crashes could happen later (#5177).
includes/Rts.h
includes/rts/Flags.h
rts/RtsFlags.c
rts/RtsFlags.h
rts/RtsStartup.c