Bug 422 - segfault on number of samples not multiple of 4
Summary: segfault on number of samples not multiple of 4
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: pipistrello-ols (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 01:31 CEST by Bert Vermeulen
Modified: 2014-09-30 01:31 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Vermeulen 2014-09-30 01:31:15 CEST
Program received signal SIGSEGV, Segmentation fault.
__memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:167
167	../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0  __memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:167
#1  0x00007ffff7b84031 in p_ols_receive_data (fd=0, revents=0, 
    cb_data=0x614990) at src/hardware/pipistrello-ols/protocol.c:619

Likely off-by-one in buffer size * unitsize.