mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-11 14:10:16 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8e6d543de | ||
|
|
34978b4019 | ||
|
|
8056c1542a | ||
|
|
c36a4a0fa5 | ||
|
|
f9c0570e34 |
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -65,3 +65,34 @@ jobs:
|
||||
#fail_ci_if_error: true
|
||||
verbose: true
|
||||
gcov: true
|
||||
|
||||
sanitizers:
|
||||
name: Test with clang sanitizers
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
compiler: ['clang']
|
||||
# These are the various sanitizers from https://github.com/google/sanitizers:
|
||||
cflags:
|
||||
- '-fsanitize=address -O1 -fno-omit-frame-pointer -g'
|
||||
- '-fsanitize=memory -fsanitize-memory-track-origins -fPIE -pie -fno-omit-frame-pointer -g -O2'
|
||||
- '-fsanitize=undefined'
|
||||
|
||||
fail-fast: false
|
||||
env:
|
||||
CC: ${{ matrix.compiler }}
|
||||
CFLAGS: ${{ matrix.cflags }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build the code
|
||||
run: make
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install -yy shelltestrunner
|
||||
|
||||
- name: Run tests
|
||||
run: make check
|
||||
|
||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## Changes in version 1.7 (Thu, 20 Apr 2023)
|
||||
|
||||
Fixes a single bug in stinit parsing of invalid definitions. This is a
|
||||
trivial bug, and only affects config files manually installed by root,
|
||||
so the impact should be minimal.
|
||||
|
||||
The bug also does not appear on amd64/x86, but (in Debian) was only
|
||||
triggered (as undefined behaviour) on mips64el, arm64 and s390x,
|
||||
likely due to different platform behaviour.
|
||||
|
||||
## Changes in version 1.6 (Wed, 19 Apr 2023)
|
||||
|
||||
This is bugfix release agains 1.5. In between 1.4 and 1.5, the "make
|
||||
|
||||
2
Makefile
2
Makefile
@@ -31,7 +31,7 @@ DISTFILES = \
|
||||
TESTFILES = $(wildcard tests/*.test)
|
||||
TESTDATAFILES = $(wildcard tests/data/*.data)
|
||||
|
||||
VERSION=1.6
|
||||
VERSION=1.7
|
||||
RELEASEDIR=mt-st-$(VERSION)
|
||||
TARFILE=mt-st-$(VERSION).tar.gz
|
||||
|
||||
|
||||
10
stinit.c
10
stinit.c
@@ -139,9 +139,13 @@ static char *find_string(char *s, char *target, char *buf, int buflen)
|
||||
cp++;
|
||||
for (cp2 = cp; *cp2 != '"' && *cp2 != '\0'; cp2++)
|
||||
;
|
||||
} else
|
||||
for (cp2 = cp + 1; isalnum(*cp2) || *cp2 == '-'; cp2++)
|
||||
;
|
||||
} else {
|
||||
if (*cp == '\0')
|
||||
return NULL;
|
||||
else
|
||||
for (cp2 = cp + 1; isalnum(*cp2) || *cp2 == '-'; cp2++)
|
||||
;
|
||||
}
|
||||
if (*cp2 == '\0')
|
||||
return NULL;
|
||||
have_arg = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user