On Fri, Apr 19, 2013 at 4:05 PM, Victor Julien <notifications@github.com>wrote:

> In src/util-streaming-parser.c:
>
> > +{
> > +    StreamingParserCtx *tctx = (StreamingParserCtx *)ctx;
> > +    tctx->data = data;
> > +    tctx->data_len = data_len;
> > +
> > +    return;
> > +}
> > +
> > +/*****Get functions*****/
> > +
> > +int StreamingParserGetU8(void *ctx, uint8_t *ret_input)
> > +{
> > +    StreamingParserCtx *tctx = (StreamingParserCtx *)ctx;
> > +
> > +    if (tctx->temp_buffer_len > 0) {
> > +        *ret_input = tctx->temp_buffer & 0x000000000000FF;
>
> Won't this write a u64 value to the uin8_t ptr? The result of
> tctx->temp_buffer & 0x000000000000FF; should be a u64.
>
>
It will downsize the value.

-- 
Anoop Saldanha