Skip to content

Commit 97f29ab

Browse files
committed
Release 3.7
1 parent f8a61aa commit 97f29ab

File tree

8 files changed

+44
-19
lines changed

8 files changed

+44
-19
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.6.{build}
1+
version: 3.7.{build}
22
max_jobs: 4
33
environment:
44
matrix:

.github/workflows/main.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ jobs:
4545
run: |
4646
sudo apt-get -y install doxygen wget perl
4747
make distcheck
48+
- if: matrix.CONF_ARGS == '' && startsWith(github.ref, 'refs/tags/')
49+
name: Prep-Release
50+
run: sha256sum safeclib-*.tar.* > dist.sha256
51+
- if: matrix.CONF_ARGS == '' && startsWith(github.ref, 'refs/tags/')
52+
name: Release
53+
continue-on-error: true
54+
uses: softprops/action-gh-release@v1
55+
with:
56+
body_path: dist.sha256
57+
files: |
58+
dist.sha256
59+
safeclib-*.tar.*
4860
macOS:
4961
name: macOS
5062
runs-on: macOS-latest
@@ -85,6 +97,7 @@ jobs:
8597
libtool
8698
autoconf-wrapper
8799
automake-wrapper
100+
zip
88101
- run: reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
89102
- run: git config --global core.autocrlf input
90103
- name: checkout
@@ -98,8 +111,17 @@ jobs:
98111
run: make V=1
99112
- shell: msys2 {0}
100113
run: make check-log
101-
#- name: Create zipped asset
102-
# run: gzip -c configure >configure.gz
114+
- shell: msys2 {0}
115+
if: startsWith(github.ref, 'refs/tags/')
116+
run: make pkg; sha256sum safeclib-*-x86_64-w64-mingw32.zip > mingw.sha256
117+
- name: Release
118+
uses: softprops/action-gh-release@fe9a9bd3295828558c7a3c004f23f3bf77d155b2
119+
if: startsWith(github.ref, 'refs/tags/')
120+
with:
121+
append_body_path: mingw.sha256
122+
files: |
123+
mingw.sha256
124+
safeclib-*-x86_64-w64-mingw32.zip
103125
#- name: Create Release
104126
# id: create_release
105127
# uses: actions/create-release@v1

ChangeLog

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11

22
ChangeLog file for safeclib
33

4-
Changes in 3.7.0
4+
Changes in 3.7
55
- Switched to proper semantic versioning for upstream packagers.
66
- Fixed getenv_s to allow dest=NULL or dmax=0 as in the spec. (GH #109)
7+
- Fixed qsort_s with gcc-12 (GH #110)
78
- Updated to Unicode 14 (tested against perl 5.35.7)
89
export define SAFECLIB_UNICODE_VERSION 14
910
- Added stpcpy_s and stpncpy_s as in the Intel safestringlib fork.
1011
- Added our own portable implementation of the family of printf_s
1112
functions. This make the results and errno sideeffects more predictable.
1213
scanf_s not yet. Fixes GH #97.
14+
- This also adds support for the %Lx family of printf handlers: %L[fFeEaAgG]
15+
and wide-char %ls, %lc conversions.
16+
(GH #103). Now just custom sscanf_s and UTF-8 support is missing.
1317
- Added a --disable-hardening option, which bypasses obviously failing
1418
AX_APPEND_COMPILE_FLAGS probes (PR #107, ffontaine).
1519
E.g. needed on some exotic uclibc buildroot targets.

Makefile.am

+9-11
Original file line numberDiff line numberDiff line change
@@ -390,16 +390,6 @@ dist_man_MANS += \
390390
doc/man/man3/towfc_s.c.3 \
391391
doc/man/man3/towlower.3 \
392392
doc/man/man3/towupper.3 \
393-
doc/man/man3/unw16ifcan.h.3 \
394-
doc/man/man3/unw16ifcmb.h.3 \
395-
doc/man/man3/unw16ifcmp.h.3 \
396-
doc/man/man3/unw16ifcpt.h.3 \
397-
doc/man/man3/unw16ifexc.h.3 \
398-
doc/man/man3/unwifcan.h.3 \
399-
doc/man/man3/unwifcmb.h.3 \
400-
doc/man/man3/unwifcmp.h.3 \
401-
doc/man/man3/unwifcpt.h.3 \
402-
doc/man/man3/unwifexc.h.3 \
403393
doc/man/man3/vfwprintf_s.3 \
404394
doc/man/man3/vfwprintf_s.c.3 \
405395
doc/man/man3/vfwscanf_s.3 \
@@ -514,7 +504,6 @@ docs man: Doxyfile doc/footer $(BUILT_SOURCES) README.rst \
514504
-rm doc/man/man3/seqindex_*
515505
-rm doc/man/man3/*case_seqindex.3
516506
-rm doc/man/man3/UINT16_MAX.3
517-
-rm doc/man/man3/UNWIF_*.3
518507
-rm doc/man/man3/README*
519508
-rm doc/man/man3/__STDC_WANT_LIB_EXT1__.3
520509
-rm doc/man/man3/__WORDSIZE.3
@@ -601,6 +590,15 @@ check-log:
601590
perf:
602591
tests/p_memcpy_s
603592
tests/p_memcpy32_s
593+
pkg:
594+
-rm -rf inst
595+
$(MAKE) install DESTDIR="`pwd`/inst" prefix=/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
596+
if HAVE_MINGW
597+
(cd inst && zip ../$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-$(host_triplet).zip -r $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) && cd -)
598+
else
599+
tar cfz $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-$(host_triplet).tar.gz -C inst $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
600+
endif
601+
rm -rf inst
604602
gh-pages: docs
605603
echo ensure ./configure --enable-unsafe
606604
ls doc/man/man3/tmpnam_s.3

configure.ac

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 2017 Reini Urban <[email protected]>
55
#
66
# Copyright (c) 2012, 2013 Cisco Systems
7-
# Copyright (c) 2017-2021 Reini Urban
7+
# Copyright (c) 2017-2022 Reini Urban
88
# All rights reserved.
99
#
1010
# Permission is hereby granted, free of charge, to any person
@@ -34,7 +34,6 @@
3434
AC_PREREQ([2.69])
3535

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

4039
# Configure the configure script

tests/test_getenv_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*------------------------------------------------------------------
22
* test_getenv_s
33
* File 'os/getenv_s.c'
4-
* Lines executed:96.43% of 28
4+
* Lines executed:100.00% of 29
55
*
66
*------------------------------------------------------------------
77
*/

tests/test_stpncpy_s.c

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* File 'stpncpy_s.c'
44
* File 'stpncpy_s.c'
55
* Lines executed:75.25% of 101
6+
* File 'stpncpy_s.c'
7+
* Lines executed:75.25% of 101
68
* Lines executed:75.25% of 101
79
*------------------------------------------------------------------
810
*/

tests/test_vsnprintf_s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*------------------------------------------------------------------
22
* test_vsnprintf_s
33
* File 'wchar/vsnprintf_s.c'
4-
* Lines executed:40.37% of 488
4+
* Lines executed:40.12% of 486
55
*
66
*------------------------------------------------------------------
77
*/

0 commit comments

Comments
 (0)