Anders Kaseorg
23f0eedb8c
Parser::UTF8Parser::input: Remove dead code for negative size_t
...
size_t is unsigned. Fixes two issues found by the Coverity Scan
service, one about the dead code and one about the std::string
exception being uncaught by mosh-server.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2015-06-04 23:50:40 -04:00
Geoffrey Thomas
aeffb71cfc
Style cleanup: "foo &x", not "foo& x"
2015-06-04 23:47:32 -04:00
Geoffrey Thomas
9e9919c941
UTF8Parser::input: size_t is unsigned, so it can't be negative
2015-06-04 23:47:31 -04:00
Anders Kaseorg
5e3ec2e037
Instantiate Parser::family once
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-07-24 15:01:55 -04:00
Keith Winstein
92ecb99b71
Add OpenSSL licensing exception
2012-07-20 16:46:00 -04:00
Keith Winstein
c8951c7dfd
Use memmove() where ranges may overlap. Fixes #200 (Matthew Dempsky).
2012-04-16 18:22:27 -04:00
Keith Winstein
eea48e59d3
Avoid compiler warning on platforms where wchar_t is uint32_t (arm)
2012-03-31 14:30:24 -04:00
Keegan McAllister
7ed5174aa7
Move some locale handling into one place
2012-03-26 20:08:55 -04:00
Keith Winstein
df5d163f9c
Fix asserts with side-effects (per Keegan McAllister)
2012-03-08 10:50:19 -05:00
Keith Winstein
812b24b83a
Screen out ill-formed UTF-8 representing surrogate code point
2012-03-07 03:10:19 -05:00
Quentin Smith
26e9e91adb
Cast MB_CUR_MAX to type size_t
2012-03-07 03:05:36 -05:00
Anders Kaseorg
af649a035c
Add missing #includes
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 19:24:51 -05:00
Keith Winstein
3781a290c8
Add copyright/license notices
2012-02-06 20:52:48 -05:00
Keith Winstein
38c9e99882
Separate modules by subdirectory
2012-02-06 18:26:45 -05:00