[binutils-gdb] Fix 32207 [gprofng collect app] Error in parsing the -O option
Vladimir Mezentsev
vmezents@sourceware.org
Thu Sep 26 19:30:14 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=519aef2dae56a3b71016ed3a39929f59e3a0955a
commit 519aef2dae56a3b71016ed3a39929f59e3a0955a
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date: Wed Sep 25 15:31:34 2024 -0700
Fix 32207 [gprofng collect app] Error in parsing the -O option
gprofng/ChangeLog
2024-09-25 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR 32207
* src/collctrl.cc (preprocess_names): Fix the size in strndup.
Diff:
---
gprofng/src/collctrl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc
index d341cb00fca..2fa9a883147 100644
--- a/gprofng/src/collctrl.cc
+++ b/gprofng/src/collctrl.cc
@@ -2422,7 +2422,7 @@ Coll_Ctrl::preprocess_names ()
}
else
{
- expt_dir = dbe_strndup (expt_name, s - expt_name - 1);
+ expt_dir = dbe_strndup (expt_name, s - expt_name);
base_name = strdup (s + 1);
}
More information about the Binutils-cvs
mailing list