Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [cws eforms2] data navigator : crash when add new element into new instance | ||
---|---|---|---|
Product: | xml | Reporter: | marc.neumann |
Component: | code | Assignee: | marc.neumann |
Status: | CLOSED FIXED | QA Contact: | issues@xml <issues> |
Severity: | Trivial | ||
Priority: | P2 | CC: | issues, lars.oppermann, openoffice |
Version: | current | ||
Target Milestone: | OOo 2.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
marc.neumann
2004-09-06 12:28:06 UTC
pb -> dvo: please take over. It crashes in the forms dll, but the stack isn't significant. dvo: Fixed in unoxml/../xpath/xpathapi.?xx dvo->lo: the fix is in your code; please review in case I didn't do things properly. The problem is that the xforms extension functions, particularly instance(..), need to access the XForms model. To do so, the XXPathExtensions object has a reference to the model, which the instance function implementation then accesses. There were two bugs: 1) When piping the reference to the function data through the libxml2 C code as void*, there was one '&' operator too much, so that the code attempted to access the wrong address. => superflous '&' was removed 2) The actual extension object was not kept alive during XPath evaluation, so that the void* pointer would point to deleted data. => Now the XXPathAPI object keeps a list of Reference<XXPathExtension> objects instead of the extension handles. This way, the extension object remains alive as long a the XXPathAPI which references it does. assign issue to MSC . reassign to QA Hi, fixed in cws eforms2 Bye Marc Hi, verified in cws eforms2 Bye Marc Hi, fixed in current developer build -> close. The current developer build can be found at http://download.openoffice.org/680/index.html Feel free to reopen if this issue is not fixed in the developer build. Bye Marc |