[Jack-Devel] [jackaudio/jack1] 6a6297: fix garbage keys in JackPropertyChangeCallback.

Paul Davis paul at linuxaudiosystems.com
Thu Feb 11 21:48:25 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/jackaudio/jack1
  Commit: 6a629716f0f43a5a1e310f9f66035f175702afd5
      https://github.com/jackaudio/jack1/commit/6a629716f0f43a5a1e310f9f66035f175702afd5
  Author: Hanspeter Portner <dev at open-music-kontrollers.ch>
  Date:   2015-11-25 (Wed, 25 Nov 2015)

  Changed paths:
    M jackd/engine.c
    M libjack/client.c

  Log Message:
  -----------
  fix garbage keys in JackPropertyChangeCallback.

Issue
-----
JackPropertyChangeCallback returns a carbage key when removing all keys of
a given uuid, e.g. triggered by 'jack_remove_properties(...)'.

Expected
--------
JackPropertyChangeCallback should return a (NULL) key when removing all
keys of a given uuid.

Culprit
-------
'malloc' is called with key_size==0, which MAY NOT return a (NULL) pointer.

Fix
---
Do not call 'malloc' for key_size==0.


  Commit: b1fca754142f221313ece84a7b458f8c0261345d
      https://github.com/jackaudio/jack1/commit/b1fca754142f221313ece84a7b458f8c0261345d
  Author: Paul Davis <paul at linuxaudiosystems.com>
  Date:   2016-02-11 (Thu, 11 Feb 2016)

  Changed paths:
    M jackd/engine.c
    M libjack/client.c

  Log Message:
  -----------
  Merge pull request #29 from ventosus/fix_garbage_keys_in_JackPropertyChangeCallback

fix garbage keys in JackPropertyChangeCallback.


Compare: https://github.com/jackaudio/jack1/compare/310e3f99ded0...b1fca754142f


More information about the Jackaudio mailing list