andreww / fox

A Fortran XML library
https://andreww.github.io/fox/
Other
59 stars 50 forks source link

Not initializing tempString2 in m_sax_parser.f90 #31

Open bcorfman opened 10 years ago

bcorfman commented 10 years ago

In 4.1.2, you have the following code on line 1515 of m_sax_parser.f90: if (associated(tempString2)) deallocate(tempString2)

However, tempString2 is nowhere initialized to null. This results in the program crashing whenever you call saxParse twice within the same run. (In my case, I was calling it via parseFile.)

andreww commented 10 years ago

This should now be fixed in the development version in master on github. I would be grateful if you can test this as I've not actually been able to get the parser to crash.