kartikeyap / rough-auditing-tool-for-security

Automatically exported from code.google.com/p/rough-auditing-tool-for-security
GNU General Public License v2.0
0 stars 0 forks source link

Sometime ptr->data is NULL #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Just a little fix in Rats 2.3 :

Bug description :

Sometime ptr->data is NULL (sorry I can't be more precise).

In report.c lign 558 update :

- printf("  <type>%s</type>\n",
-        ptr->data->Name);

               with :

+ if(  !ptr->data )
+   printf("  <type>None</type>\n");
+ else
+   printf("  <type>%s</type>\n",
+          ptr->data->Name);

Best regards

Original issue reported on code.google.com by lemath...@gmail.com on 28 Jun 2011 at 7:48