Bug 216569

Summary: net/librsync2: Segfault on rs_search_for_block
Product: Ports & Packages Reporter: Danilo G. Baio <dbaio>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: Closed FIXED    
Severity: Affects Many People CC: freebsd-bugzilla, freebsd, freebsdbugs
Priority: --- Flags: bugzilla: maintainer-feedback? (bdrewery)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 216542    
Attachments:
Description Flags
librsync2-1.patch none

Description Danilo G. Baio freebsd_committer freebsd_triage 2017-01-29 12:39:50 UTC
Created attachment 179392 [details]
librsync2-1.patch

- Apply a patch from upstream for fix rs_search_for_block bug.

This issue[1] showed up on sysutils/duplicity (bug 216542).

The commit[2] from upstream fixed this.

[1] - https://github.com/librsync/librsync/issues/50
[2] - https://github.com/librsync/librsync/commit/c2daedb5835f5301de50b44add166344e1ef6b02

[Q/A]

portlint: OK (looks fine.)

testport:
   poudriere: i386|amd64 - 10.3 p16     (OK)
   poudriere: i386|amd64 - 11   p7      (OK) 
   poudriere: i386|amd64 - 12   r312672 (OK)
Comment 1 Gary 2017-01-29 15:37:08 UTC
*** Bug 216572 has been marked as a duplicate of this bug. ***
Comment 2 FiLiS 2017-01-30 07:36:59 UTC
*** Bug 216543 has been marked as a duplicate of this bug. ***
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-01-30 21:35:55 UTC
A commit references this bug:

Author: bdrewery
Date: Mon Jan 30 21:34:51 UTC 2017
New revision: 432873
URL: https://svnweb.freebsd.org/changeset/ports/432873

Log:
  - Apply a patch from upstream for fix rs_search_for_block bug [1]
    Fixes a sysutils/duplicity crash [2]

  PR:		216569 [1]
  PR:		216542 [2]
  Obtained from:	https://github.com/librsync/librsync/commit/c2daedb5835f5301de50b44add166344e1ef6b02
  Submitted by:	Danilo G. Baio (dbaio) <dbaio@bsd.com.br>

Changes:
  head/net/librsync2/Makefile
  head/net/librsync2/files/
  head/net/librsync2/files/patch-src_search.c