Commit c39ec30
fix memsize_node when called on xmlAttrs
The `properties` field of an `xmlNode` element points to an `xmlAttr`.
The first few fields of `xmlAttr` are in common with `xmlNode`, but not
the `properties` field which doesn't exist in an `xmlAttr`.
The `memsize_node` function was passing an `xmlAttr` to a
recursive call and then trying to do the same with the properties of
that.
This led to type confusion and subsequent crashes.
Fixes: #2923
(cherry picked from commit 81762fa)1 parent 1617d54 commit c39ec30
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments