Skip to content

Commit

Permalink
Release 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Jan 29, 2022
1 parent f8a61aa commit 97f29ab
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.6.{build}
version: 3.7.{build}
max_jobs: 4
environment:
matrix:
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ jobs:
run: |
sudo apt-get -y install doxygen wget perl
make distcheck
- if: matrix.CONF_ARGS == '' && startsWith(github.ref, 'refs/tags/')
name: Prep-Release
run: sha256sum safeclib-*.tar.* > dist.sha256
- if: matrix.CONF_ARGS == '' && startsWith(github.ref, 'refs/tags/')
name: Release
continue-on-error: true
uses: softprops/action-gh-release@v1
with:
body_path: dist.sha256
files: |
dist.sha256
safeclib-*.tar.*
macOS:
name: macOS
runs-on: macOS-latest
Expand Down Expand Up @@ -85,6 +97,7 @@ jobs:
libtool
autoconf-wrapper
automake-wrapper
zip
- run: reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
- run: git config --global core.autocrlf input
- name: checkout
Expand All @@ -98,8 +111,17 @@ jobs:
run: make V=1
- shell: msys2 {0}
run: make check-log
#- name: Create zipped asset
# run: gzip -c configure >configure.gz
- shell: msys2 {0}
if: startsWith(github.ref, 'refs/tags/')
run: make pkg; sha256sum safeclib-*-x86_64-w64-mingw32.zip > mingw.sha256
- name: Release
uses: softprops/action-gh-release@fe9a9bd3295828558c7a3c004f23f3bf77d155b2
if: startsWith(github.ref, 'refs/tags/')
with:
append_body_path: mingw.sha256
files: |
mingw.sha256
safeclib-*-x86_64-w64-mingw32.zip
#- name: Create Release
# id: create_release
# uses: actions/create-release@v1
Expand Down
6 changes: 5 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@

ChangeLog file for safeclib

Changes in 3.7.0
Changes in 3.7
- Switched to proper semantic versioning for upstream packagers.
- Fixed getenv_s to allow dest=NULL or dmax=0 as in the spec. (GH #109)
- Fixed qsort_s with gcc-12 (GH #110)
- Updated to Unicode 14 (tested against perl 5.35.7)
export define SAFECLIB_UNICODE_VERSION 14
- Added stpcpy_s and stpncpy_s as in the Intel safestringlib fork.
- Added our own portable implementation of the family of printf_s
functions. This make the results and errno sideeffects more predictable.
scanf_s not yet. Fixes GH #97.
- This also adds support for the %Lx family of printf handlers: %L[fFeEaAgG]
and wide-char %ls, %lc conversions.
(GH #103). Now just custom sscanf_s and UTF-8 support is missing.
- Added a --disable-hardening option, which bypasses obviously failing
AX_APPEND_COMPILE_FLAGS probes (PR #107, ffontaine).
E.g. needed on some exotic uclibc buildroot targets.
Expand Down
20 changes: 9 additions & 11 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,6 @@ dist_man_MANS += \
doc/man/man3/towfc_s.c.3 \
doc/man/man3/towlower.3 \
doc/man/man3/towupper.3 \
doc/man/man3/unw16ifcan.h.3 \
doc/man/man3/unw16ifcmb.h.3 \
doc/man/man3/unw16ifcmp.h.3 \
doc/man/man3/unw16ifcpt.h.3 \
doc/man/man3/unw16ifexc.h.3 \
doc/man/man3/unwifcan.h.3 \
doc/man/man3/unwifcmb.h.3 \
doc/man/man3/unwifcmp.h.3 \
doc/man/man3/unwifcpt.h.3 \
doc/man/man3/unwifexc.h.3 \
doc/man/man3/vfwprintf_s.3 \
doc/man/man3/vfwprintf_s.c.3 \
doc/man/man3/vfwscanf_s.3 \
Expand Down Expand Up @@ -514,7 +504,6 @@ docs man: Doxyfile doc/footer $(BUILT_SOURCES) README.rst \
-rm doc/man/man3/seqindex_*
-rm doc/man/man3/*case_seqindex.3
-rm doc/man/man3/UINT16_MAX.3
-rm doc/man/man3/UNWIF_*.3
-rm doc/man/man3/README*
-rm doc/man/man3/__STDC_WANT_LIB_EXT1__.3
-rm doc/man/man3/__WORDSIZE.3
Expand Down Expand Up @@ -601,6 +590,15 @@ check-log:
perf:
tests/p_memcpy_s
tests/p_memcpy32_s
pkg:
-rm -rf inst
$(MAKE) install DESTDIR="`pwd`/inst" prefix=/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
if HAVE_MINGW
(cd inst && zip ../$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-$(host_triplet).zip -r $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) && cd -)
else
tar cfz $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-$(host_triplet).tar.gz -C inst $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
endif
rm -rf inst
gh-pages: docs
echo ensure ./configure --enable-unsafe
ls doc/man/man3/tmpnam_s.3
Expand Down
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 2017 Reini Urban <[email protected]>
#
# Copyright (c) 2012, 2013 Cisco Systems
# Copyright (c) 2017-2021 Reini Urban
# Copyright (c) 2017-2022 Reini Urban
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person
Expand Down Expand Up @@ -34,7 +34,6 @@
AC_PREREQ([2.69])

# information on the package
#AC_SUBST([PACKAGE_VERSION], [3.7])
AC_INIT([Safe C Library],[3.7],[https://github.com/rurban/safeclib/issues],[safeclib],[http://github.com/rurban/safeclib/])

# Configure the configure script
Expand Down
2 changes: 1 addition & 1 deletion tests/test_getenv_s.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*------------------------------------------------------------------
* test_getenv_s
* File 'os/getenv_s.c'
* Lines executed:96.43% of 28
* Lines executed:100.00% of 29
*
*------------------------------------------------------------------
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/test_stpncpy_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* File 'stpncpy_s.c'
* File 'stpncpy_s.c'
* Lines executed:75.25% of 101
* File 'stpncpy_s.c'
* Lines executed:75.25% of 101
* Lines executed:75.25% of 101
*------------------------------------------------------------------
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vsnprintf_s.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*------------------------------------------------------------------
* test_vsnprintf_s
* File 'wchar/vsnprintf_s.c'
* Lines executed:40.37% of 488
* Lines executed:40.12% of 486
*
*------------------------------------------------------------------
*/
Expand Down

0 comments on commit 97f29ab

Please sign in to comment.