-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash 3.4.0 - libxml2.2.dylib: xmlMallocZero +48 #853
Comments
@kelson42 I had a deeper look at this. There main issue is that it won't fail properly if initialised with invalid xml/html content data, there's already a long standing issue on that on Fuzi's side. I implemented the proposed changes for that, and linked my version of Fuzi to the project, but it's still not 100%, as it is not failing properly under all conditions. Additional to that some issues have been already fixed in the underlying libxml2 as well. comparing my local version (2.09) and the latest libxml2 version 2.13.2. We have a couple of options here, bearing in mind that only 2 devices crashed:
Search results with default html parsing option (first sentence):Search results with html parsing disabled:We can be more subtle here, either:
|
@BPerlakiH Thank you for the analysis. Please make a PR to remove for bookmarks. For search results, the libkiwix has a function to provide the HTML snippet, so I don't understand why this is not used! |
Ok, I figured this out. We have 4 options to display some extra field as part of the search results.
First paragraph and First sentence is using the html parser to get some more info from the content. As you can see, where the title matches there's no additional info, whereas where the content is matching there's an extra field. This is is to be compared with the default behaviour (First Paragraph): |
The text was updated successfully, but these errors were encountered: