Re: [Plplot-devel] plbuf.c - plbuf_restore, plbuf_switch - Uninitialised/Invalid pointer

2008-08-28 Thread Alan W. Irwin
On 2008-08-28 16:34- trc wrote: > I don't have a test case but inspecting the code suggests that if > plbuf_restore is called this would give rise to errors in the color maps and > further memory corruption. > > new_state should be initialised in line 1154 as follows > > struct _state *new_

[Plplot-devel] plbuf.c - plbuf_restore, plbuf_switch - Uninitialised/Invalid pointer

2008-08-28 Thread trc
Hi, When compiling plbuf.c, MS Visual Studio 9 2008 issues the following warning plbuf.c(1159) : warning C4700: uninitialized local variable 'new_state' used. This occurs in - void plbuf_restore(PLStream *pls, void *state) { struct _state *new_state;