Skip to content

Commit 1513ca2

Browse files
author
Tor Didriksen
committed
merge 5.5 -> 5.6
2 parents c3bb3b9 + 82d9c8e commit 1513ca2

6 files changed

Lines changed: 14 additions & 8 deletions

File tree

include/my_global.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ C_MODE_END
374374
#ifdef _some_old_compiler_that_does_not_understand_the_construct_below_
375375
#define compile_time_assert(X) do { } while(0)
376376
#else
377-
#define compile_time_assert(X) \
378-
do \
379-
{ \
377+
#define compile_time_assert(X) \
378+
do \
379+
{ \
380380
typedef char compile_time_assert[(X) ? 1 : -1] __attribute__((unused)); \
381381
} while(0)
382382
#endif

mysys/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -64,6 +64,11 @@ TARGET_LINK_LIBRARIES(mysys dbug strings ${ZLIB_LIBRARY}
6464
${LIBNSL} ${LIBM} ${LIBRT})
6565
DTRACE_INSTRUMENT(mysys)
6666

67+
# Need explicit pthread for gcc -fsanitize=address
68+
IF(CMAKE_USE_PTHREADS_INIT AND CMAKE_C_FLAGS MATCHES "-fsanitize=")
69+
TARGET_LINK_LIBRARIES(mysys pthread)
70+
ENDIF()
71+
6772
ADD_EXECUTABLE(thr_lock thr_lock.c)
6873
TARGET_LINK_LIBRARIES(thr_lock mysys)
6974
SET_TARGET_PROPERTIES(thr_lock PROPERTIES COMPILE_FLAGS "-DMAIN")

sql/debug_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by

sql/field.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2011, 2013 Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2013 Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by

sql/sql_table.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ uint filename_to_tablename(const char *from, char *to, uint to_length
391391
DBUG_ENTER("filename_to_tablename");
392392
DBUG_PRINT("enter", ("from '%s'", from));
393393

394-
if (!memcmp(from, tmp_file_prefix, tmp_file_prefix_length))
394+
if (strlen(from) >= tmp_file_prefix_length &&
395+
!memcmp(from, tmp_file_prefix, tmp_file_prefix_length))
395396
{
396397
/* Temporary table name. */
397398
res= (strnmov(to, from, to_length) - to);

support-files/build-tags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/sh
22

33
rm -f TAGS
4-
filter='\.cpp$\|\.cc$\|\.c$\|\.h$\|\.yy$\|\.hpp$'
4+
filter='\.cpp$\|\.cc$\|\.c$\|\.h$\|sql_yacc\.yy$\|\.hpp$'
55

66
list="find . -type f"
77
bzr root >/dev/null 2>/dev/null && list="bzr ls --from-root -R --kind=file --versioned"

0 commit comments

Comments
 (0)