Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
634f9186
Commit
634f9186
authored
Apr 18, 2017
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add multiple parsing protection to include/mysqld_error.h
parent
a30c225e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
extra/comp_err.c
extra/comp_err.c
+2
-0
No files found.
extra/comp_err.c
View file @
634f9186
...
@@ -267,6 +267,7 @@ static int create_header_files(struct errors *error_head)
...
@@ -267,6 +267,7 @@ static int create_header_files(struct errors *error_head)
fprintf
(
sql_statef
,
"/* Autogenerated file, please don't edit */
\n\n
"
);
fprintf
(
sql_statef
,
"/* Autogenerated file, please don't edit */
\n\n
"
);
fprintf
(
er_namef
,
"/* Autogenerated file, please don't edit */
\n\n
"
);
fprintf
(
er_namef
,
"/* Autogenerated file, please don't edit */
\n\n
"
);
fprintf
(
er_definef
,
"#ifndef ER_ERROR_FIRST
\n
"
);
fprintf
(
er_definef
,
"#define ER_ERROR_FIRST %d
\n
"
,
error_head
->
d_code
);
fprintf
(
er_definef
,
"#define ER_ERROR_FIRST %d
\n
"
,
error_head
->
d_code
);
current_d_code
=
error_head
->
d_code
-
1
;
current_d_code
=
error_head
->
d_code
-
1
;
...
@@ -314,6 +315,7 @@ static int create_header_files(struct errors *error_head)
...
@@ -314,6 +315,7 @@ static int create_header_files(struct errors *error_head)
}
}
/* finishing off with mysqld_error.h */
/* finishing off with mysqld_error.h */
fprintf
(
er_definef
,
"#define ER_ERROR_LAST %d
\n
"
,
er_last
);
fprintf
(
er_definef
,
"#define ER_ERROR_LAST %d
\n
"
,
er_last
);
fprintf
(
er_definef
,
"#endif /* ER_ERROR_FIRST */
\n
"
);
my_fclose
(
er_definef
,
MYF
(
0
));
my_fclose
(
er_definef
,
MYF
(
0
));
my_fclose
(
sql_statef
,
MYF
(
0
));
my_fclose
(
sql_statef
,
MYF
(
0
));
my_fclose
(
er_namef
,
MYF
(
0
));
my_fclose
(
er_namef
,
MYF
(
0
));
...
...
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