Bug 202742

Summary: [patch] net/mosquitto: update to 1.4.3, add bugfix
Product: Ports & Packages Reporter: Stefan Bethke <stb>
Component: Individual Port(s)Assignee: Olli Hauer <ohauer>
Status: Closed FIXED    
Severity: Affects Only Me CC: joe, ohauer
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (joe)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
update to 1.4.3
none
files/patch-lib_memory_mosq.c none

Description Stefan Bethke 2015-08-29 10:29:34 UTC
Created attachment 160480 [details]
update to 1.4.3

mosquitto release 1.4.3 on Aug 18th.

Also, a bug in the malloc/free wrapper can lead to SEGVs, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=475707

I suggest to add the bug fix as a patch temporarily.
Comment 1 Stefan Bethke 2015-08-29 10:31:14 UTC
Created attachment 160481 [details]
files/patch-lib_memory_mosq.c
Comment 2 Olli Hauer freebsd_committer freebsd_triage 2015-09-27 21:31:02 UTC
Take it, additional there is an update to 1.4.4 that includes the memory leak fix.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-09-27 21:33:26 UTC
A commit references this bug:

Author: ohauer
Date: Sun Sep 27 21:32:31 UTC 2015
New revision: 398053
URL: https://svnweb.freebsd.org/changeset/ports/398053

Log:
  - update to 1.4.4

  1.4.4 - 20150916
  ================

  Broker:
  - Don't leak sockets when outgoing bridge with multiple addresses cannot
    connect. Closes #477571.
  - Fix cross compiling of websockets. Closes #475807.
  - Fix memory free related crashes on openwrt. Closes #475707.
  - Fix excessive calls to message retry check.

  1.4.3 - 20150818
  ================

  Broker:
  - Fix incorrect bridge notification on initial connection. Closes #467096.
  - Build fixes for OpenBSD.
  - Fix incorrect behaviour for autosave_interval, most noticable for
    autosave_interval=1. Closes #465438.
  - Fix handling of outgoing QoS>0 messages for bridges that could not be sent
    because the bridge connection was down.
  - Free unused topic tree elements. Closes #468987.
  - Fix some potential memory leaks. Closes #470253.
  - Fix potential crash on libwebsockets error.

  Client library:
  - Add missing error strings to mosquitto_strerror.
  - Handle fragmented TLS packets without a delay. Closes #470660.
  - Fix incorrect loop timeout being chosen when using threaded interface and
    keepalive = 0. Closes #471334.
  - Increment inflight messages count correctly. Closes #474935.

  Clients:
  - Report error string on connection failure rather than error code.

  PR:		202742
  Submitted by:	stb@lassitu.de
  Approved by:	maintainer timout (one month)

Changes:
  head/net/mosquitto/Makefile
  head/net/mosquitto/distinfo
Comment 4 Olli Hauer freebsd_committer freebsd_triage 2015-09-27 21:37:19 UTC
Committed update to 1.4.4