Commit graph

10 commits

Author SHA1 Message Date
Tim Eves
5429037179 Fix bug #1494 potential for buffer overrun
The get/put routines now require the buffer size remaining to be read/written to permit checking and the iterator will update this value whenever iterator comparisions are made.  Other direct uses of get/put have been updated.
2019-01-17 17:12:42 +07:00
Tim Eves
70b6310a19 Fix misnamed km_kbp_context_items_to_utf8 call & add test case.
And fix the type of the buffer to match the type in the definition.

Co-Authored-By: Daniel Glassey <glasseyes@users.noreply.github.com>
2018-11-30 15:02:07 +07:00
glasseyes
899a9ae1e6 dispose things in tests that were memleaks 2018-11-12 15:55:28 +07:00
Marc Durdin
9ca7bab5f9 [Common] Final checks 2018-11-12 19:23:54 +11:00
Marc Durdin
1ab04f681a [Common] Code Review updates, some minor changes to API, mostly comments and tests; one bug fix 2018-11-12 19:12:59 +11:00
Tim Eves
93c76c14df Move headers into include/keyman from include/
Necessary to allow keyboardprocessor.h to refer to auxillary headers as 
<keyboard/header.h>
2018-11-06 16:19:14 +07:00
Tim Eves
333ef283c8 Make constext API more consistent and robust with use of km_kbp_status.
In addition:
Add asserts and checks to better validate the inputs.
Add documentation describing design patterns behind differet types of 
call.
2018-11-06 14:53:33 +07:00
Tim Eves
bbd67c7a9b Minor tidyup stop compiler complaining about unsused variables. 2018-10-30 13:12:30 +07:00
Tim Eves
9af3308ef3 Fix a compiler warnings in context_api under clang and statically link.
While dynamic linking works on linux & Mac OS due to rpath support 
Windows can't find the dll when debugging the test case unless it's 
copied into the tests builddir or it has it's working dir set to the 
DLL's builddir.
2018-10-29 16:05:06 +07:00
Tim Eves
ef548606aa Move keyboardprocessor into it's new toplevel under common/engine 2018-10-25 13:43:28 +07:00
Renamed from keyboardprocessor/tests/unit/kmnkbd/context_api.cpp (Browse further)