I am trying to use the path intersection tool with these two paths (the SVGs are attached):

The paths have self-intersections, and it looks like in this specific case they are being ignored.

The resulting intersection path is clearly not what it should be (the darker areas in the first image).
Is this a bug, or is it to be expected for self-intersecting paths?
Thanks for any pointers,
Giacomo