cbufp: change csp buffer type to intptr_t