Apache OpenOffice (AOO) Bugzilla – Issue 33228
rsc2 breaks in module sc
Last modified: 2005-01-24 22:18:04 UTC
rsc2 breaks in module sc with the activated languages RES_THAI and/or RES_KANNADA. It looks like there is somewhere a buffer overflow. Possible one of the strings or string list is too long.
I have seend this with KANNADA. But only on Windows. GNU/Linux builds work correctly without problem. I'll report status on Solaris/SPARC soon.
My build on Solaris/SPARC wentfine even with KANNADA defined. So this seems to be Windows only. Volker added himself to CC: ;-)
-> reassigned to pl
sc/source/ui/src does not contain any KANNADA or THAI; neither in 645 nor in 680. Wo where can one reproduce this issue ?
pl: SRX645_m46: pavel@pavel:~/.ooo/ooo_SRX645_m46_src> grep -r kannada sw|wc -l 3195
pl: you're right that directory doesn't contain any kannada resource. Ivo probably removed them because of problems because original GSI for Kannada contains sctings in that directory.
no method of reproduction - no fix
even funnier: i got the kannada and thai strings in sc out of CWS ooo113l10nfix, and could build the corresponding resources on m46 flawlessly. stranger and stranger.
fixed in CWS ooo113l10nfix gh: please verify
fixed
Seems to work
compiling the ressources works but insertfunction in calc freezes the office (sometimes got GPF also) Fount in cannada OK in german,thai and arabic (arbitrary selected list)
.
Will fix that problem in 2.0 by changing the resource file format to 32 bit offsets. This is obviously unthinkable for 1.1, so i'll say too long languages need to be shortened.
Created attachment 17651 [details] avoid overflow in rsc
will be built back, since even if rsc2 does not crash it will produce an invalid resource file. This cannot be changed without changing the resource file format, so users should have a notion that "something" broke. Attached a diff for people that want to built all languages knowing that the calc resource in some languages will be broken.
wont fix in 1.1 tree, see issue 34002 for 2.0 tree. Furthermore the resource format will be changed for 2.0 to accomodate 32bit offsets.
closing
OK finally we decided that it would be better to leave the patch in and print an errormessage and break the build when the ressource exceeds 64K.
*** Issue 41237 has been marked as a duplicate of this issue. ***