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
f59809c8
Commit
f59809c8
authored
Mar 02, 2002
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load local fix
overrun sentry in my_vsnprintf() test will not be pushed yet
parent
b305a27a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
+20
-5
BUILD/FINISH.sh
BUILD/FINISH.sh
+1
-0
BUILD/SETUP.sh
BUILD/SETUP.sh
+4
-0
BUILD/compile-pentium-debug-max
BUILD/compile-pentium-debug-max
+1
-1
configure.in
configure.in
+5
-2
mysys/my_vsnprintf.c
mysys/my_vsnprintf.c
+9
-2
No files found.
BUILD/FINISH.sh
View file @
f59809c8
cflags
=
"
$c_warnings
$extra_flags
"
cxxflags
=
"
$cxx_warnings
$base_cxxflags
$extra_flags
"
extra_configs
=
"
$extra_configs
$local_infile_configs
"
configure
=
"./configure
$base_configs
$extra_configs
"
for
arg
do
...
...
BUILD/SETUP.sh
View file @
f59809c8
...
...
@@ -57,6 +57,10 @@ static_link="--with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static
alpha_configs
=
""
# Not used yet
pentium_configs
=
""
sparc_configs
=
""
# we need local-infile in all binaries for rpl000001
# if you need to disable local-infile in the client, write a build script
# and unset local_infile_configs
local_infile_configs
=
"--enable-local-infile"
debug_configs
=
"--with-debug"
...
...
BUILD/compile-pentium-debug-max
View file @
f59809c8
...
...
@@ -8,6 +8,6 @@ c_warnings="$c_warnings $debug_extra_warnings"
cxx_warnings
=
"
$cxx_warnings
$debug_extra_warnings
"
extra_configs
=
"
$pentium_configs
$debug_configs
"
extra_configs
=
"
$extra_configs
--with-berkeley-db --with-innodb --with-embedded-server --with-openssl
--enable-local-infile
"
extra_configs
=
"
$extra_configs
--with-berkeley-db --with-innodb --with-embedded-server --with-openssl"
.
"
$path
/FINISH.sh"
configure.in
View file @
f59809c8
...
...
@@ -606,10 +606,13 @@ AC_SUBST(MYSQLD_USER)
AC_ARG_ENABLE
(
local-infile,
[
--enable-local-infile
If LOAD DATA LOCAL INFILE is enabled by default.],
[
ENABLED_LOCAL_INFILE
=
$enablewal
]
,
[
ENABLED_LOCAL_INFILE
=
$enablewal
AC_DEFINE
(
ENABLED_LOCAL_INFILE
)
]
,
[
ENABLED_LOCAL_INFILE
=
no
]
)
# Use Paul Eggerts macros from GNU tar to check for large file support.
MYSQL_SYS_LARGEFILE
...
...
mysys/my_vsnprintf.c
View file @
f59809c8
...
...
@@ -80,15 +80,22 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
}
#ifdef MAIN
#define OVERRUN_SENTRY 250
static
void
my_printf
(
const
char
*
fmt
,
...)
{
char
buf
[
3
2
];
char
buf
[
3
3
];
int
n
;
va_list
ar
;
va_start
(
ar
,
fmt
);
n
=
my_vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
ar
);
buf
[
sizeof
(
buf
)
-
1
]
=
OVERRUN_SENTRY
;
n
=
my_vsnprintf
(
buf
,
sizeof
(
buf
)
-
1
,
fmt
,
ar
);
printf
(
buf
);
printf
(
"n=%d, strlen=%d
\n
"
,
n
,
strlen
(
buf
));
if
(
buf
[
sizeof
(
buf
)
-
1
]
!=
OVERRUN_SENTRY
)
{
fprintf
(
stderr
,
"Buffer overrun
\n
"
);
abort
();
}
va_end
(
ar
);
}
...
...
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