Fixed bug in dictionary_fill

Bug: when creating a new Dictionary object (for example through PList::Node::FromPlist(plist_t node) ), the dictionary_fill function is called from Dictionary() constructor in line 50. It seems that the intended way of calling dictionary_fill() is to pass the _map object by reference, however it is actually passed by value. Thus the changes to the map object made by dictionary_fill() are discarded when the function returns.

Fix: pass _map by reference to keep the changes
1 file changed
tree: 8ca873ad0efe38394711b53c30007e4785e5a5fc
  1. cython/
  2. fuzz/
  3. include/
  4. libcnary/
  5. m4/
  6. src/
  7. test/
  8. tools/
  9. .gitignore
  10. AUTHORS
  11. autogen.sh
  12. configure.ac
  13. COPYING
  14. COPYING.LESSER
  15. doxygen.cfg.in
  16. Makefile.am
  17. NEWS
  18. README.md
README.md

libplist

About

A small portable C library to handle Apple Property List files in binary or XML.

Requirements

Software:

  • make
  • autoheader
  • automake
  • autoconf
  • libtool
  • pkg-config
  • gcc or clang

Optional:

  • cython (Python bindings)
  • doxygen (Documentation)

Installation

To compile run:

./autogen.sh
make
sudo make install

If you require a custom prefix or other option being passed to ./configure you can pass them directly to ./autogen.sh like this:

./autogen.sh --prefix=/opt/local --without-cython
make
sudo make install

Who/What/Where?

Credits

Apple, iPhone, iPod, and iPod Touch are trademarks of Apple Inc. libimobiledevice is an independent software library and has not been authorized, sponsored, or otherwise approved by Apple Inc.

README Updated on: 2019-05-16