fontconfig/test
Ben Wagner ba15d41bdc Fix stack use after scope in FcConfigCompareValue
Discovered by AddressSanitizer. When left_o and right_o are promoted the
promoted values are placed on the stack in FcValuePromotionBuffer.
The FcValuePromotionBuffers must then continue to be in scope while
left_o and right_o point into their content. In 9d4e5d0f the
FcValuePromotionBuffers were moved into the incorrect scope, leaving
left_o and right_o pointing into an object whose lifetime has ended.
This is similar to left and right which appear to have a smaller scope
but are actually required to be in the larger scope.

Correct this by moving the FcValuePromotionBuffers to the proper scope.
Leave the left and right FcValues where they are since they are in the
correct scope already.

This also adds to test-conf the ability to create charset, langset,
range, and matrix in patterns. This allows for a simple test which fails
under AddressSanitizer before this change and passes after.
2021-02-16 11:30:32 -05:00
..
4x6.pcf Add simple tests 2003-03-01 05:55:17 +00:00
8x16.pcf Add simple tests 2003-03-01 05:55:17 +00:00
Makefile.am Test all not_eq for family names. 2020-12-28 11:01:38 -05:00
fonts.conf.in Update testcase 2019-04-03 12:02:09 +00:00
meson.build Check qual and compare for family tests 2020-12-17 04:51:20 +00:00
out.expected-long-family-names Add the check of PCF_CONFIG_OPTION_LONG_FAMILY_NAMES back 2017-11-20 17:29:39 +05:30
out.expected-no-long-family-names Add the check of PCF_CONFIG_OPTION_LONG_FAMILY_NAMES back 2017-11-20 17:29:39 +05:30
run-test-conf.sh Test all not_eq for family names. 2020-12-28 11:01:38 -05:00
run-test-map.sh Replace UUID file mechanism with per-directory 'map' attribute [v2] 2019-04-03 12:02:09 +00:00
run-test.sh Portable trap conditions in run-test.sh. 2020-12-10 14:00:40 -05:00
test-45-generic.json Fix stack use after scope in FcConfigCompareValue 2021-02-16 11:30:32 -05:00
test-60-generic.json Add a test case for FcFontList 2018-11-27 09:39:15 +00:00
test-90-synthetic.json Add a test case for 90-synthetic.conf 2018-05-11 22:15:39 +09:00
test-bz89617.c Fix a couple of minor memory leaks 2016-05-30 10:30:10 +09:00
test-bz96676.c Bug 96676 - Check range of FcWeightFromOpenType argument 2016-07-08 14:18:35 +09:00
test-bz106618.c Add a test case for bz#106618 2018-05-25 15:24:44 +09:00
test-bz106632.c Fix leaks in fcxml.c, fc-match.c, and tests. 2020-12-14 10:54:11 +00:00
test-bz131804.c Fix compiler warnings 2018-01-04 20:37:26 +09:00
test-bz1744377.c Fix gcc warnings with -Wpointer-sign 2019-11-06 20:28:58 +09:00
test-conf.c Fix stack use after scope in FcConfigCompareValue 2021-02-16 11:30:32 -05:00
test-crbug1004254.c Fix gcc warnings with -Wpointer-sign 2019-11-06 20:28:58 +09:00
test-d1f48f11.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-family-matching.c Clean up test-family-matching test. 2021-01-07 07:03:42 +00:00
test-issue107.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-issue110.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-issue180.c Fix leaks in fcxml.c, fc-match.c, and tests. 2020-12-14 10:54:11 +00:00
test-migration.c fccompat: fix build on Windows without unistd.h 2020-07-07 03:48:34 +00:00
test-name-parse.c Minor: fix warnings 2018-03-15 07:51:06 -07:00
test-pthread.c Add missing license headers 2014-01-17 13:05:25 +09:00
wrapper-script.sh Fix make check on cross-compiled env 2019-03-22 16:51:38 +09:00