Roof-to-wall step flashing must overlap correctly with counterflashing to direct water away from siding, stucco
https://finnfmfx542.lucialpiazzale.com/just-how-to-preserve-a-flat-roofing-to-stop-leaks
Roof-to-wall step flashing must overlap correctly with counterflashing to direct water away from siding, stucco, or masonry joints.