[PATCH] crash when use <AreaProperty/>

Issue #1130 resolved
Robert Paciorek
created an issue


  1. According to the documentation <AreaProperty/> tag must be used inside of <Area/> tag.
  2. When I do that - I get exception "AreaProperty nodes may not be children of other AreaProperty nodes".
  3. When I put <AreaProperty/> outside <Area/> tag - I get segmentation fault.


Problem is in elementAreaPropertyStart() function where:

  1. throwing exception when pointer d_area (setting in <Area/> tag parsing function) is not NULL
  2. otherwise (when is NULL) use d_area pointer to call setAreaPropertySource() method

Proposed fix

elementAreaPropertyStart() should throw exeption when d_area is NULL - patch attached

Comments (4)

  1. Log in to comment