Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
vite
Commits
3fdc4790
Commit
3fdc4790
authored
6 years ago
by
Johnny Jazeix
Committed by
Mathieu Faverge
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix crash when more than 32 elements
parent
3a97d7bb
No related branches found
No related tags found
1 merge request
!9
Resolve "Crashes on extended Event type definition"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/parser/PajeParser/PajeDefinition.hpp
+3
-3
3 additions, 3 deletions
src/parser/PajeParser/PajeDefinition.hpp
src/parser/PajeParser/ParserDefinitionPaje.cpp
+4
-1
4 additions, 1 deletion
src/parser/PajeParser/ParserDefinitionPaje.cpp
with
7 additions
and
4 deletions
src/parser/PajeParser/PajeDefinition.hpp
+
3
−
3
View file @
3fdc4790
...
@@ -78,10 +78,10 @@ typedef enum paje_eventdef_e {
...
@@ -78,10 +78,10 @@ typedef enum paje_eventdef_e {
/*!
/*!
* \brief Names of the fields describing events
* \brief Names of the fields describing events
* This is a non e
c
haustive list of the names which can be used
* 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
a
tins
* to described the fields of each events. This list cont
a
ins
* only the field's name required by some events. It can be
* 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.
* the need of the user.
*/
*/
#define FIELDNAME_SIZEMAX 32
#define FIELDNAME_SIZEMAX 32
...
...
This diff is collapsed.
Click to expand it.
src/parser/PajeParser/ParserDefinitionPaje.cpp
+
4
−
1
View file @
3fdc4790
...
@@ -319,7 +319,10 @@ void ParserDefinitionPaje::add_field_to_definition(const PajeLine_t *line){
...
@@ -319,7 +319,10 @@ void ParserDefinitionPaje::add_field_to_definition(const PajeLine_t *line){
#else
#else
strcpy_s
(
newfn
,
size
,
fieldname
);
strcpy_s
(
newfn
,
size
,
fieldname
);
#endif
#endif
// In case there are more than the default value
if
(
_FieldNames
.
size
()
<=
_nbFieldNames
)
{
_FieldNames
.
resize
(
2
*
_nbFieldNames
);
}
_FieldNames
[
_nbFieldNames
].
_name
=
newfn
;
_FieldNames
[
_nbFieldNames
].
_name
=
newfn
;
_FieldNames
[
_nbFieldNames
].
_id
=
_nbFieldNames
;
_FieldNames
[
_nbFieldNames
].
_id
=
_nbFieldNames
;
_FieldNames
[
_nbFieldNames
].
_code
=
(
1
<<
_nbFieldNames
);
_FieldNames
[
_nbFieldNames
].
_code
=
(
1
<<
_nbFieldNames
);
...
...
This diff is collapsed.
Click to expand it.
Johnny Jazeix
@jjazeix
mentioned in issue
#17 (closed)
·
4 years ago
mentioned in issue
#17 (closed)
mentioned in issue #17
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment