google/crush-tools

funiq segfaults when receiving 0-byte input

Closed this issue · 1 comments

What steps will reproduce the problem?

  $ echo -n '' | funiq 
  Segmentation fault

  Or on another system:

  $ echo -n '' | funiq
  funiq: xmalloc failed to allocate 1125870855412416 bytes: Cannot
  allocate memory


What is the expected output? What do you see instead?

  0-byte output.

What version of the product are you using? On what operating system?

  trunk, r504

Original issue reported on code.google.com by jhi...@google.com on 8 Apr 2011 at 8:22

Fixed in r505

Original comment by jeremy.h...@gmail.com on 8 Apr 2011 at 9:05

  • Changed state: Verified