<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 3, 2012, at 1:47 PM, Richard Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Hi,<div><br></div><div>This asserts in cases where memset is given a pointer to incomplete type. Testcase:</div><div><br></div><div><div>typedef unsigned long size_t;</div><div>typedef struct _snd_pcm_hw_params snd_pcm_hw_params_t;</div><div>size_t snd_pcm_hw_params_sizeof(void);</div><div>#define snd_pcm_hw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_hw_params)</div><div>#define __snd_alloca(ptr,type) do { *ptr = (type##_t *) alloca(type##_sizeof()); memset(*ptr, 0, type##_sizeof()); } while (0)</div><div>int sa_stream_open() {</div><div>  snd_pcm_hw_params_t* hwparams;</div><div>  snd_pcm_hw_params_alloca(&hwparams);</div><div>}</div><br class="Apple-interchange-newline"></div></span></blockquote></div><br><div>Fixed in r151993, thanks!</div><div><br></div><div>-Chris</div></body></html>