Reviewed-by: dholmes, gtriantafill, sla
Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb
Using pointer_delta to avoid overflowing pointer calculation. Reviewed-by: jmasa, tschatzl