[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 Caolán McNamarachanged: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|libreoffice-b...@lists.free |caol...@redhat.com |desktop.org | --- Comment #6 from Caolán McNamara --- "If the one cannot maintain the code after he had wrote it, the one should not do it at all" I think I might have written this about 15 years or so ago. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 --- Comment #5 from Commit Notification--- Caolán McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=eb2da27e0834925d449373593fb650db49671adf Resolves: tdf#99556 if the num of arguments is not 1 infer a raw It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 Commit Notificationchanged: What|Removed |Added Whiteboard||target:5.2.0 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 --- Comment #4 from Sergey Zelenyuk--- Sorry, I'm a bad programmer and I try to do the best I can. My position is that a programmer is responsible for a code that he write, even it is only a bug fix. If the one cannot maintain the code after he had wrote it, the one should not do it at all. -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 --- Comment #3 from Regina Henschel--- You have already analyzed the problem so deep; what do you think about contributing to LibreOffice and fixing the bug yourself? -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 --- Comment #2 from Sergey Zelenyuk--- The cause of problem is in mathmlimport.cxx. // ... void SmXMLSqrtContext_Impl::EndElement() { /* accepts any number of arguments; if this number is not 1, its contents are treated as a single "inferred " containing its arguments */ if (GetSmImport().GetNodeStack().size() - nElementCount > 1) SmXMLRowContext_Impl::EndElement(); // ... If has more than one children they will be handled inside a , but it should also be done if there is no child. - GetSmImport().GetNodeStack().size() - nElementCount > 1 + GetSmImport().GetNodeStack().size() - nElementCount != 1 Not only msqrt affect to this problem but also mphantom, menclose, mstyle, mpadded and several attributes such as fontweight. Unlike msqrt, they will not crash the program now because they have no code deals with children in their EndElement functions, but they can do it in future. mphantom and font attributes have been fixed in https://bugs.documentfoundation.org/show_bug.cgi?id=98088. The fix adds a code which checks number of children but the cause of problem remains. menclose, mstyle and mpadded aren't cause a crash because they have no code in mathmlimport.cxx which works with children elements but the problem at the place anyway. Summarize. How to fix the cause: 1) msqrt. See above. 2) mphantom, menclose, mstyle, mpadded and font attributes. Same changes as with msqrt should be done but in other functions: SmXMLPhantomContext_Impl::EndElement SmXMLEncloseContext_Impl::EndElement SmXMLStyleContext_Impl::EndElement SmXMLPaddedContext_Impl::EndElement -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 99556] CRASH: NULL pointer dereference in MathML node.cxx
https://bugs.documentfoundation.org/show_bug.cgi?id=99556 Regina Henschelchanged: What|Removed |Added Status|UNCONFIRMED |NEW CC||rb.hensc...@t-online.de Ever confirmed|0 |1 --- Comment #1 from Regina Henschel --- Import via clipboard shows the crash as well. Making the method SmRootNode::CreateTextFromNode save is one thing, and should be done. But I think the error happens earlier. If a msqrt element is empty, it should be handled as So it would have a child. https://www.w3.org/TR/MathML2/chapter3.html#presm.reqarg -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs