Ticket #16 (new defect)

Opened 6 months ago

Last modified 6 months ago

Bug in Config.cpp

Reported by: stolte@dfn-cert.de Assigned to: common
Priority: major Component: nepenthes
Keywords: Cc:

Description

Attached is a fix. It should be self explaining.

Attachments

Change History

11/15/07 17:10:50 changed by anonymous

Well, i get a permission denied when i attach a file so here it is in the comment:

--- nepenthes/nepenthes-core/src/Config.cpp.orig 2007-11-15 15:56:15.000000000 +0100 +++ nepenthes/nepenthes-core/src/Config.cpp 2007-11-15 15:56:35.000000000 +0100 @@ -352,7 +352,7 @@

szHexConv[0] = data->getChar(); szHexConv[1] = data->getChar();

- szHexConv[3] = 0; + szHexConv[2] = 0;

// printf("uint32_t i is here %i\n",i); // printf("Converting %i %c%c -> %i\n",i, szHexConv[0],szHexConv[1], (unsigned char)strtol(szHexConv,NULL,16) ); // strtol(szHexConv,NULL,16);

11/15/07 17:13:16 changed by anonymous

--- nepenthes/nepenthes-core/src/Config.cpp.orig        2007-11-15 15:56:15.000000000 +0100
+++ nepenthes/nepenthes-core/src/Config.cpp     2007-11-15 15:56:35.000000000 +0100
@@ -352,7 +352,7 @@

                                        szHexConv[0] = data->getChar();
                                        szHexConv[1] = data->getChar();
-                                       szHexConv[3] = 0;
+                                       szHexConv[2] = 0;
 //                                     printf("uint32_t i is here %i\n",i);
 //                                     printf("Converting %i %c%c -> %i\n",i, szHexConv[0],szHexConv[1], (unsigned char)strtol(szHexConv,NULL,16) );
 //                                     strtol(szHexConv,NULL,16);

Add/Change #16 (Bug in Config.cpp)