Skip to content

Commit

Permalink
Release v17102019 3.5.2
Browse files Browse the repository at this point in the history
Fixed t_mbsrtowcs_s.exe compilation under newer mingw gcc
mingw BOS needs now stdlib.h
  • Loading branch information
rurban committed Oct 17, 2019
1 parent 7388bb5 commit 5d92be8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

ChangeLog file for safeclib

Changes in v17102019 3.5.2
- Fixed mbsrtowcs_s error message prefix.
- Fixed t_mbsrtowcs_s.exe compilation under newer mingw gcc.

Changes in v16102019 3.5.1
- Fixed memset_s for the upper 4 bits of 64 bit words (GH #73)
- Fixed strncat_s error handling for slen exceeds src.
Expand Down
4 changes: 2 additions & 2 deletions build-aux/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ CC="clang-mp-5.0" \
./configure --disable-shared --enable-unsafe --enable-norm-compat && \
gmake -s -j4 check-log || exit
gmake -s -j4 clean
echo clang-mp-3.9 -fsanitize=address -fno-omit-frame-pointer --enable-debug --enable-unsafe --enable-norm-compat
CC="clang-mp-3.9 -fsanitize=address -fno-omit-frame-pointer" \
echo clang-mp-8.0 -fsanitize=address -fno-omit-frame-pointer --enable-debug --enable-unsafe --enable-norm-compat
CC="clang-mp-8.0 -fsanitize=address -fno-omit-frame-pointer" \
./configure --enable-debug --enable-unsafe --enable-norm-compat && \
gmake -s -j4 check-log || exit
gmake -s -j4 clean
Expand Down
6 changes: 2 additions & 4 deletions tests/test_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>

/* for malloc/free */
#if defined(HAVE_STDLIB_H) && (defined(HAVE___BND_CHK_PTR_BOUNDS) || \
defined(HAVE___BUILTIN___BND_SET_PTR_BOUNDS))
/* for malloc/free and mingw BOS */
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

Expand Down

0 comments on commit 5d92be8

Please sign in to comment.