View Issue Details

IDProjectCategoryView StatusLast Update
0001544libextractorlibextractor main librarypublic2010-03-14 00:17
Reporterrfs Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.5.23 
Fixed in Version0.6.1 
Summary0001544: Failure to match /proc/%u/maps device node
DescriptionThe sscanf() string used to match /proc/%u/maps assumes that the device node (4th column) consists of two unsigned integers. However according to "man proc" these fields are hexadecimal. When running in a virtual machine, this caused the plugin path to fail.
Additional InformationProblem appears to still be present in SVN head version.
TagsNo tags attached.
Attached Files
libextractor-0.5.23-dev-is-hex.patch (455 bytes)   
--- libextractor-0.5.23/src/main/extractor.c.orig	2010-03-06 10:19:21.821425726 -0500
+++ libextractor-0.5.23/src/main/extractor.c	2010-03-06 10:19:51.228431169 -0500
@@ -340,7 +340,7 @@
   if (f != NULL) {
     while (NULL != fgets(line, 1024, f)) {
       if ( (1 == sscanf(line,
-			"%*x-%*x %*c%*c%*c%*c %*x %*2u:%*2u %*u%*[ ]%s",
+			"%*x-%*x %*c%*c%*c%*c %*x %*2x:%*2x %*u%*[ ]%s",
 			dir)) &&
 	   (NULL != strstr(dir,
 			   "libextractor")) ) {

Activities

Christian Grothoff

2010-03-07 16:57

manager   ~0004003

Fixed in SVN HEAD as suggested in the patch (Revision 10506).

Issue History

Date Modified Username Field Change
2010-03-06 17:04 rfs New Issue
2010-03-06 17:04 rfs File Added: libextractor-0.5.23-dev-is-hex.patch
2010-03-07 16:57 Christian Grothoff Note Added: 0004003
2010-03-07 16:57 Christian Grothoff Status new => resolved
2010-03-07 16:57 Christian Grothoff Resolution open => fixed
2010-03-07 16:57 Christian Grothoff Assigned To => Christian Grothoff
2010-03-14 00:17 Christian Grothoff Status resolved => closed
2010-03-14 00:17 Christian Grothoff Fixed in Version => 0.6.1