DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
698 stars 374 forks source link

Use after free reported by scan-build (clang version 15.0.7) in OS_NS_stdio.inl #2180

Closed undergraver closed 7 months ago

undergraver commented 8 months ago

https://github.com/DOCGroup/ACE_TAO/blob/7efcd5faa4d441a0005a81166916101423721301/ACE/ace/OS_NS_stdio.inl#L929

At the mentioned line scan-build rightly reports that "ndir" variable is used after the destructor of ACE_Wide_To_Ascii. I suppose the same goes for "npfx".

image

jwillemsen commented 8 months ago

Please open a pull request with a proposed fix