Skip to content

Commit

Permalink
Prepare for 1.3.13 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mhosken committed Dec 20, 2018
1 parent 2011627 commit b45f9b2
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 28 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.3.13
. Resolve minor spacing issue in rtl non-overlap kerning
. python3 for graphite.py
. Better fuzzing
. Better building on windows

1.3.12
. Graphite no longer does dumb rendering for fonts with no smarts
. Segment caching code removed. Anything attempting to use the segment cache gets given a regular face instead
Expand Down
6 changes: 6 additions & 0 deletions debian-src/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
graphite2 (1.3.13~palaso1ubuntu1) bionic; urgency=medium

* Minor bug fixes release

-- Martin Hosken <[email protected]> Mon, 20 Dec 2018 13:04:23 +0700

graphite2 (1.3.12~palaso1ubuntu1) bionic; urgency=medium

* Minor bug fixes release
Expand Down
4 changes: 2 additions & 2 deletions doc/building.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ GRAPHITE2_VM_TYPE:STRING::
GRAPHITE2_SANITIZERS:STRING::
This turns on compile time support for the specified sanitizers. This works
with both gcc and clang, though there are some differences in which
sanitizers each offers. If fuzzer is one of them then it will cause the
libFuzzer based fuzzing targets to be built as well. +
sanitizers each offers. The fuzzer sanitizer causes libFuzzer based fuzzing
targets to be built as well, but this currently only works under clang. +
The default is an empty string.

Bear in mind that ASAN will not work with ulimit constraints so running the
Expand Down
1 change: 0 additions & 1 deletion doc/release.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ These notes are not necessarily part of the manual. They are here for code
developers to remember to do the right thing when it comes to release day.

. `make` and `make docs`
. `make fuzztest` and check .log file results
. The first line of the Changelog must be the version number. This is so that
packagers can extract the version number from the source.
. Make sure the version numbers in the `#defines` reflect the release number in
Expand Down
2 changes: 1 addition & 1 deletion include/graphite2/Font.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#define GR2_VERSION_MAJOR 1
#define GR2_VERSION_MINOR 3
#define GR2_VERSION_BUGFIX 12
#define GR2_VERSION_BUGFIX 13

#ifdef __cplusplus
extern "C"
Expand Down
48 changes: 24 additions & 24 deletions tests/fuzz-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@ function(hasr VAR RESULT)
endif ()
endfunction()

add_custom_target(fuzztest)
file(GLOB_RECURSE tfiles RELATIVE ${PROJECT_SOURCE_DIR} *.fuzz)
set(lastfontname "")
set(excludednames "libfuzz-corpus")
if (NOT GRAPHITE2_SANITIZERS MATCHES "address")
set(noasan -t 20 --memory=8000 --valgrind)
endif ()
# add_custom_target(fuzztest)
# file(GLOB_RECURSE tfiles RELATIVE ${PROJECT_SOURCE_DIR} *.fuzz)
# set(lastfontname "")
# set(excludednames "libfuzz-corpus")
# if (NOT GRAPHITE2_SANITIZERS MATCHES "address")
# set(noasan -t 20 --memory=8000 --valgrind)
# endif ()

foreach (tfile IN LISTS tfiles)
set(tpath ${tfile})
trimtail(tpath tname)
trimtail(tpath textname)
trimtail(tpath fname)
if (NOT excludednames MATCHES ${fname})
hasr(tname dirargs)
if (NOT lastfontname EQUAL fname)
add_custom_command(TARGET fuzztest PRE_BUILD COMMAND echo ${fname})
set(lastfontname ${fname})
endif()
add_custom_command(TARGET fuzztest PRE_BUILD COMMAND ${PROJECT_SOURCE_DIR}/../fuzztest ARGS -l fuzzregress-${fname}-${textname}-${tname}.log -f ${PROJECT_SOURCE_DIR}/../fonts/${fname}.ttf -q ${noasan} --include=required,graphite --exclude==fontdir,opentype,volt,advtypo,post -V -k --input=${PROJECT_SOURCE_DIR}/${fname}/${textname}/${tname} -- ../comparerenderer/comparerenderer -q ${dirargs} -s 12 -n -f {} -t ${PROJECT_SOURCE_DIR}/../texts/${textname}.txt)
add_custom_command(TARGET fuzztest POST_BUILD COMMAND test -s fuzzregress-${fname}-${textname}-${tname}.log && echo test: ${fname} ${textname} ${tname} failed. || true)
add_custom_command(TARGET fuzztest PRE_BUILD COMMAND ${PROJECT_SOURCE_DIR}/../fuzztest ARGS -l fuzzregress-demand-${fname}-${textname}-${tname}.log -f ${PROJECT_SOURCE_DIR}/../fonts/${fname}.ttf -q ${noasan} --include=required,graphite --exclude==fontdir,opentype,volt,advtypo,post -V -k --input=${PROJECT_SOURCE_DIR}/${fname}/${textname}/${tname} -- ../comparerenderer/comparerenderer --demand -q ${dirargs} -s 12 -n -f {} -t ${PROJECT_SOURCE_DIR}/../texts/${textname}.txt)
add_custom_command(TARGET fuzztest POST_BUILD COMMAND test -s fuzzregress-demand-${fname}-${textname}-${tname}.log && echo demand test: ${fname} ${textname} ${tname} failed. || true)
endif ()
endforeach()
# foreach (tfile IN LISTS tfiles)
# set(tpath ${tfile})
# trimtail(tpath tname)
# trimtail(tpath textname)
# trimtail(tpath fname)
# if (NOT excludednames MATCHES ${fname})
# hasr(tname dirargs)
# if (NOT lastfontname EQUAL fname)
# add_custom_command(TARGET fuzztest PRE_BUILD COMMAND echo ${fname})
# set(lastfontname ${fname})
# endif()
# add_custom_command(TARGET fuzztest PRE_BUILD COMMAND ${PROJECT_SOURCE_DIR}/../fuzztest ARGS -l fuzzregress-${fname}-${textname}-${tname}.log -f ${PROJECT_SOURCE_DIR}/../fonts/${fname}.ttf -q ${noasan} --include=required,graphite --exclude==fontdir,opentype,volt,advtypo,post -V -k --input=${PROJECT_SOURCE_DIR}/${fname}/${textname}/${tname} -- ../comparerenderer/comparerenderer -q ${dirargs} -s 12 -n -f {} -t ${PROJECT_SOURCE_DIR}/../texts/${textname}.txt)
# add_custom_command(TARGET fuzztest POST_BUILD COMMAND test -s fuzzregress-${fname}-${textname}-${tname}.log && echo test: ${fname} ${textname} ${tname} failed. || true)
# add_custom_command(TARGET fuzztest PRE_BUILD COMMAND ${PROJECT_SOURCE_DIR}/../fuzztest ARGS -l fuzzregress-demand-${fname}-${textname}-${tname}.log -f ${PROJECT_SOURCE_DIR}/../fonts/${fname}.ttf -q ${noasan} --include=required,graphite --exclude==fontdir,opentype,volt,advtypo,post -V -k --input=${PROJECT_SOURCE_DIR}/${fname}/${textname}/${tname} -- ../comparerenderer/comparerenderer --demand -q ${dirargs} -s 12 -n -f {} -t ${PROJECT_SOURCE_DIR}/../texts/${textname}.txt)
# add_custom_command(TARGET fuzztest POST_BUILD COMMAND test -s fuzzregress-demand-${fname}-${textname}-${tname}.log && echo demand test: ${fname} ${textname} ${tname} failed. || true)
# endif ()
# endforeach()

if (GRAPHITE2_SANITIZERS MATCHES "fuzzer")
add_executable(gr-fuzzer-segment gr-fuzzer-segment.cpp)
Expand Down

0 comments on commit b45f9b2

Please sign in to comment.