tuxpaint-pencil-sharpener/src
Mark Kim e1ecf80e26 Fix random crashes in Korean, Japanese, and some other languages
Occasionally running Tux Paint in Korean, Japanese, and possibly other
languages would cause Tux Paint to crash.  This commit fixes it.

This bug was previously mentioned as the possible cause of these
previously reported crashes, though they were determined to be
unrelated:

  https://sourceforge.net/p/tuxpaint/mailman/message/37364981/
  https://sourceforge.net/p/tuxpaint/mailman/message/37376574/

The cause of the crash turned out to be in the function that loads the
input method map (*.im).  Some languages that use more than one
keystroke to produce one unicode character use this mapfile to track, in
a state machine, what keys have been pressed and what unicode character
should be output.  This state machine's memory is increased dynamically
as needed when the input method map file is loaded.  There was a line of
code that references the old memory that could have moved by the memory
increase.  This line of code has been moved to prior to the memory
increase to avoid accessing memory that may have moved.
2022-02-06 21:02:06 -05:00
..
mouse Show "pipette"-shaped pointer when selecting colors 2022-01-25 23:57:31 -08:00
po better korean translations 2022-02-06 11:21:01 -05:00
.cvsignore Attempting to debug/fix SDL_Pango stuff. 2007-07-17 18:41:16 +00:00
.indent.pro No tabs, spaces only, please 2017-10-15 10:48:45 -07:00
BeOS_print.cpp More indentation! 2019-04-13 12:23:47 -07:00
BeOS_print.h Ran indent on .h files 2019-04-13 12:10:58 -07:00
colors.h indent colors.h 2017-10-15 10:49:43 -07:00
compiler.h Fix Haiku "unable to open saved files" bug 2020-06-22 23:04:13 -07:00
configure.in CVS Id tags added to several files for easier version tracking. 2005-11-27 08:09:37 +00:00
cursor.c Clean up some compile-time warnings/errors 2022-02-05 16:59:59 -08:00
cursor.h Show "pipette"-shaped pointer when selecting colors 2022-01-25 23:57:31 -08:00
debug.h Ran indent on .h files 2019-04-13 12:10:58 -07:00
dirwalk.c Going back to squelching notices re: unusable fonts 2021-11-08 13:21:01 -08:00
dirwalk.h indent dirwalk.c dirwalk.h 2017-10-15 10:51:07 -07:00
fill.c Limit check to avoid crash in flood Fill 2021-11-20 20:57:55 -08:00
fill.h New Fill tool mode: Brush 2021-10-19 00:26:26 -07:00
fill_tools.h Mended Fill->Brush instructions 2021-10-19 21:32:25 -07:00
fonts.c Fixed abnormal exit of threaded font scan which prevented enabling text/label tools on some environment such as Rocky Linux 8. 2021-12-22 22:24:53 +09:00
fonts.h Remove some unused funcs & declarations 2017-10-15 14:38:52 -07:00
get_fname.c mkdir exportdir's parent, if necessary 2021-01-13 22:48:29 -08:00
get_fname.h mkdir exportdir's parent, if necessary 2021-01-13 22:48:29 -08:00
gifenc.c Avoid compiler warnings in src/gifenc.c 2021-10-24 00:54:52 -07:00
gifenc.h Beginning GIF export 2020-07-25 00:18:46 -07:00
great.h Attempting to debug/fix SDL_Pango stuff. 2007-07-17 18:41:16 +00:00
i18n.c macOS system language detection. 2022-02-06 20:26:50 -05:00
i18n.h Correcting Devaganari to Devanagari 2020-11-06 21:47:42 +01:00
im.c Fix random crashes in Korean, Japanese, and some other languages 2022-02-06 21:02:06 -05:00
im.h indent im.c im.h 2017-10-15 10:58:14 -07:00
install-dlls.sh Re-enable scripted dll install (Sorry, pushed wrong file before) 2020-10-18 21:50:20 +09:00
ios.h macOS system language detection. 2022-02-06 20:26:50 -05:00
ios.m macOS system language detection. 2022-02-06 20:26:50 -05:00
ios_print.h iOS port initial commit 2021-03-21 23:01:49 -04:00
ios_print.m iOS port initial commit 2021-03-21 23:01:49 -04:00
macos.h macOS system language detection. 2022-02-06 20:26:50 -05:00
macos.m macOS system language detection. 2022-02-06 20:26:50 -05:00
macos_print.h Ran indent on .h files 2019-04-13 12:10:58 -07:00
macos_print.m Re-add print dialog access to macOS. 2018-09-28 23:24:56 -04:00
Makefile use .PHONY 2008-04-27 17:22:01 +00:00
onscreen_keyboard.c Better onscreen keyboard button sizing 2022-01-25 00:52:14 -08:00
onscreen_keyboard.h Better onscreen keyboard button sizing 2022-01-25 00:52:14 -08:00
parse.gperf Grok "[no]brushspacing" commandline/config option 2022-01-19 00:29:05 -08:00
parse.h Grok "[no]brushspacing" commandline/config option 2022-01-19 00:29:05 -08:00
pixels.c indent pixels.c pixels.h 2017-10-15 11:02:51 -07:00
pixels.h lots of functions made static (some had to be moved) 2009-11-22 23:17:35 +00:00
platform.h iOS port initial commit 2021-03-21 23:01:49 -04:00
playsound.c Added --nostereo option 2019-09-21 16:33:55 -07:00
playsound.h Added --nostereo option 2019-09-21 16:33:55 -07:00
postscript_print.c Re-ran indent on .c files 2019-04-13 12:00:44 -07:00
postscript_print.h indent postscript_print.c postscript_print.h 2017-10-15 11:04:11 -07:00
progressbar.c More function documentation 2018-05-17 00:30:48 -07:00
progressbar.h Ran source code through "indent -nbfda -npcs -npsl -bli0". 2006-08-27 21:00:52 +00:00
rgblinear.c More function documentation 2018-05-17 00:30:48 -07:00
rgblinear.h indent rgblinear.c rgblinear.h 2017-10-15 11:06:27 -07:00
shapes.h Mend broken star shape fill 2022-01-21 01:38:25 -08:00
sounds.c extern char*[] from sounds.h to new sounds.c 2021-10-24 01:20:07 -07:00
sounds.h extern char*[] from sounds.h to new sounds.c 2021-10-24 01:20:07 -07:00
test-option.sh test-option.sh's dummy.c conflicted with the one Makefile wants. 2008-05-26 21:23:09 +00:00
tip_tux.h Added copyright/license to source files that lacked it. 2009-06-03 20:46:07 +00:00
titles.h Adding sub-tool support to Fill tool 2021-02-20 16:42:35 -08:00
tools.h Showing aspect ratio of shapes when stretching them 2022-01-21 01:33:23 -08:00
tp-magic-config.sh.in Magic tools (and tp-magic-config) supports local (user) plugins. 2007-08-08 06:56:04 +00:00
tp_magic_api.h.in Further work to remove compiler warnings 2021-10-24 00:44:53 -07:00
tuxpaint-completion.bash Sync docs & update bash completion re: brushspacing 2022-01-19 00:00:57 -08:00
tuxpaint-import.sh tuxpaint-import tool uses BASHisms, so changed shebang to #!/bin/bash 2009-11-04 19:12:12 +00:00
tuxpaint.c Clean up some compile-time warnings/errors 2022-02-05 16:59:59 -08:00
tuxpaint.conf Further work on animated GIF export: XDG Pictures 2020-07-25 16:45:17 -07:00
tuxpaint.desktop Rebuild PO & .desktop 2021-06-13 21:07:36 -07:00
tuxpaint.desktop.in Adhering to Debian & FreeDesktop.org standards regarding .desktop file. 2008-07-07 23:18:57 +00:00
tuxpaint.rsrc Added BeOS resource file. 2004-11-22 00:08:54 +00:00
win32_dirent.c Re-ran indent on .c files 2019-04-13 12:00:44 -07:00
win32_dirent.h Ran indent on .h files 2019-04-13 12:10:58 -07:00
win32_print.c Addressed warnings when compiling on MinGW/MSYS 2021-11-05 12:23:09 +09:00
win32_print.h indent win32_print.c win32_print.h 2017-10-15 11:10:29 -07:00
win32_trash.c win32_trash.c: converted newline from <CR><LF> to <LF> 2021-11-03 20:51:25 +09:00