ohio813 / pdbparse

Automatically exported from code.google.com/p/pdbparse
0 stars 0 forks source link

undname can seg fault #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ensure pdbparse is built so that assertions are active (i.e. NDEBUG is 
undefined)
2. call undname with the decorated name 
"?HandleEvents@CEventFilter@@$4PPPPPPPM@3AEJPBVIReportingEventCollection@@@Z"

What is the expected output? What do you see instead?
Expect to either see the name remain undecorated or for it to be undecorated.

Instead, the assert on line 243 of undname.c fails and (if asserts are off) we 
get a seg fault.

What version of the product are you using? On what operating system?
r103

Please provide any additional information below.
A quick fix is to "gracefully" fail by inserting:

  if (!cref) return NULL;

just after line 243.

Original issue reported on code.google.com by carl.pulley on 27 Apr 2013 at 10:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r108.

Original comment by moo...@gmail.com on 3 Apr 2014 at 8:12

GoogleCodeExporter commented 9 years ago
Thanks for the report, I've applied the fix you suggested!

Original comment by moo...@gmail.com on 3 Apr 2014 at 8:12