Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
vite
Commits
3fdc4790
Commit
3fdc4790
authored
Dec 03, 2018
by
Johnny Jazeix
Committed by
Mathieu Faverge
Dec 03, 2018
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash when more than 32 elements
parent
3a97d7bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/parser/PajeParser/PajeDefinition.hpp
src/parser/PajeParser/PajeDefinition.hpp
+3
-3
src/parser/PajeParser/ParserDefinitionPaje.cpp
src/parser/PajeParser/ParserDefinitionPaje.cpp
+4
-1
No files found.
src/parser/PajeParser/PajeDefinition.hpp
View file @
3fdc4790
...
...
@@ -78,10 +78,10 @@ typedef enum paje_eventdef_e {
/*!
* \brief Names of the fields describing events
* This is a non e
c
haustive list of the names which can be used
* to described the fields of each events. This list con
at
ins
* This is a non e
x
haustive list of the names which can be used
* to described the fields of each events. This list con
ta
ins
* only the field's name required by some events. It can be
* automatically extended inside the trace to be ad
f
apted to
* automatically extended inside the trace to be adapted to
* the need of the user.
*/
#define FIELDNAME_SIZEMAX 32
...
...
src/parser/PajeParser/ParserDefinitionPaje.cpp
View file @
3fdc4790
...
...
@@ -319,7 +319,10 @@ void ParserDefinitionPaje::add_field_to_definition(const PajeLine_t *line){
#else
strcpy_s
(
newfn
,
size
,
fieldname
);
#endif
// In case there are more than the default value
if
(
_FieldNames
.
size
()
<=
_nbFieldNames
)
{
_FieldNames
.
resize
(
2
*
_nbFieldNames
);
}
_FieldNames
[
_nbFieldNames
].
_name
=
newfn
;
_FieldNames
[
_nbFieldNames
].
_id
=
_nbFieldNames
;
_FieldNames
[
_nbFieldNames
].
_code
=
(
1
<<
_nbFieldNames
);
...
...
Johnny Jazeix
@jjazeix
mentioned in issue
#17 (closed)
·
Aug 18, 2020
mentioned in issue
#17 (closed)
mentioned in issue #17
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment