2002-03-25 Jeff Law (law@redhat.com)
* linux-proc.c (read_mapping): Scan up to end of line for filename.
This commit is contained in:
parent
e76e1718eb
commit
ee677e8d79
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-03-25 Jeff Law (law@redhat.com)
|
||||
|
||||
* linux-proc.c (read_mapping): Scan up to end of line for filename.
|
||||
|
||||
2002-03-25 Michal Ludvig <mludvig@suse.cz>
|
||||
|
||||
* x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
|
||||
|
|
|
@ -77,7 +77,14 @@ read_mapping (FILE *mapfile,
|
|||
|
||||
if (ret > 0 && ret != EOF && *inode != 0)
|
||||
{
|
||||
ret += fscanf (mapfile, "%s\n", filename);
|
||||
/* Eat everything up to EOL for the filename. This will prevent
|
||||
weird filenames (such as one with embedded whitespace) from
|
||||
confusing this code. It also makes this code more robust
|
||||
in respect to annotations the kernel may add after the
|
||||
filename.
|
||||
|
||||
Note the filename is used for informational purposes only. */
|
||||
ret += fscanf (mapfile, "%[^\n]\n", filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue