[RFC] coverity/74717: FP: NULL Pointer Dereference

dynamic_buffer_ensure() allocates buf->data; add an assert to make this clear to coverity.
Yeah. Just too bad we can't communicate postconditions like that as easily as returns non-null.