View Issue Details

IDProjectCategoryView StatusLast Update
0001544libextractorlibextractor main librarypublic2010-03-13 23:17
Reporterrfs Assigned ToChristian Grothoff Due Date
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 15:57

manager   ~0004003

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

Issue History

Date ModifiedUsernameFieldChange
2010-03-06 16:04rfsNew Issue
2010-03-06 16:04rfsFile Added: libextractor-0.5.23-dev-is-hex.patch
2010-03-07 15:57Christian GrothoffNote Added: 0004003
2010-03-07 15:57Christian GrothoffStatusnew => resolved
2010-03-07 15:57Christian GrothoffResolutionopen => fixed
2010-03-07 15:57Christian GrothoffAssigned To => Christian Grothoff
2010-03-13 23:17Christian GrothoffStatusresolved => closed
2010-03-13 23:17Christian GrothoffFixed in Version => 0.6.1