The only way to cause this to happen is with incbin, and while we do have a test intended for this,
it doesn't actually check this functionality due to a change made to unbreak distcheck; next up is
figuring out a good test that will work for different source/build directories.
svn path=/trunk/yasm/; revision=1362
*multiple = 1;
datasize = bc->len / (*multiple);
- *bufsize = datasize;
/* special case for reserve bytecodes */
if (bc->callback == &bc_reserve_callback) {
+ *bufsize = datasize;
*gap = 1;
return NULL; /* we didn't allocate a buffer */
}
origbuf = buf;
destbuf = buf;
}
+ *bufsize = datasize;
if (!bc->callback)
yasm_internal_error(N_("got empty bytecode in bc_tobytes"));