Bug 46490

Summary: CRASH when pasting Khmer text from Website
Product: LibreOffice Reporter: Nathan Wells <sungkhum>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: jbfaure, jmadero.dev, LibreOffice, sepfam2, sophi
Priority: medium    
Version: 3.5.0 release   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Copy from Comment 1

Description Nathan Wells 2012-02-22 18:52:27 UTC
Steps to Reproduce:
1. Go to http://dictionary.sbbic.org/%E1%9E%80 and copy part of the khmer text:
 ព្យញ្ជនៈ​ទី ១ ក្នុង​វគ្គ​ទី ១ ជា​កណ្ឋជៈ មាន​សំឡេង​ក្នុង​ឋាន​បំពង់​ក ជា​សិថិល-អឃោសៈ, សំ. បា. មាន​សូរ​ស័ព្ទ​ថា កៈ ។ ( ន. ) អវយវៈ​ដែល​ត​ពី​ក្បាល​ទៅ​ស្មា ឬ​ទៅ​ខ្លួន​នៃ​មនុស្ស​សត្វ ។ ដៃ​ជើង​មនុស្ស​ក៏​មាន ក​ដែរ: ក​ដៃ​, ក​ជើង ។ ទង​ខាង​ដើម​កួរ​ស្រូវ​ក៏​ហៅ ក
2. Try and paste the text (copied from the website) into a new document in Writer.
3. Writer will crash.

Expected Result:
We should be able to paste without any issue (OpenOffice Writer does not have this issue, you can paste without a problem).
Comment 1 Nathan Wells 2012-02-22 18:53:35 UTC
Actually, you can just copy this (no need to go to an outside website): ថិល-អឃោសៈ, សំ. បា. មាន​សូរ​ស័ព្ទ​ថា កៈ ។ ( ន. )
អវយវៈ​ដែល​ត​ពី​ក្បាល​ទៅ​ស្មា ឬ​ទៅ​ខ្លួន​នៃ​មនុស្ស​សត្វ ។ ដៃ​ជើង​មនុស្ស​ក៏​មាន
ក​ដែរ: ក​ដៃ​, ក​ជើង ។ ទង​ខាង​ដើម​កួរ​ស្រូវ​ក៏​ហៅ ក
and try to paste it into LibreOffice Writer - it will crash.
Comment 2 Rainer Bielefeld Retired 2012-02-22 21:36:57 UTC
I believe this one might be related to or DUP of "Bug 45355 - CRASH if characters in text of BENGALI, TIBETAN, MALAYALAM, MARATHI, NEPALI, ORIYA, TAMIL, TELUGU".

@Nathan Wells:
Can you please check whether we have to add "Khmer" in Bug 45355 of if not, what the differences are between that bug and your observations?
Comment 3 Rainer Bielefeld Retired 2013-03-18 18:36:57 UTC
[Reproducible] with reporter's test string (I used complete Khmer text in Comment 1) and Server Installation of "LibreOffice 3.5.1.2 German UI/Locale [Build-ID: dc9775d-05ecbee-0851ad3-1586698-727bf66] on German WIN7 Home Premium (64bit) 

This one is not fixed in 3.6.0.4, so this seems not to be a DUP of Bug 45355

3.5.7.2 does not crash, but shows cruelly damaged "Khmer" text.

3.6.5.2 does not crash, but only shows rectangles - not an optimum solution. Still the same with 4.0.1.2 and Master 4.1

For the rectangles problem I submitted "62487 - EDITING: Copy / Paste Khmer text from Browser result is string with rectangles"

@Sophie:
Any idea who might be the right one for this problem?
Comment 4 Rainer Bielefeld Retired 2013-03-18 18:47:09 UTC
@Nathan Wells:
Still a problem?
Comment 5 Jacques Guilleron 2013-03-18 21:37:14 UTC
Created attachment 76714 [details]
Copy from Comment 1
Comment 6 Jacques Guilleron 2013-03-18 21:41:19 UTC
Hi Rainer,

Strangely, I get a copy on LO 4.0.2.1, but squares, like you, with LO 4.0.3.0+ and squares + freeze with LO 3.6.3 portable.

Jacques Guilleron
Comment 7 Joel Madero 2013-04-22 20:53:37 UTC
*** Bug 62465 has been marked as a duplicate of this bug. ***
Comment 8 Jean-Baptiste Faure 2013-05-06 20:05:24 UTC
No crash for me with LO 4.0.3 RC3 under Ubuntu 12.04 x86-64 French UI & locale.
I tested copy&paste from comment #1 and from website.

Best regards. JBF
Comment 9 Joel Madero 2013-05-19 00:13:00 UTC
From dupe bug it has been verified that this bug is fixed. Marking as WFM since we don't know what patch fixed it