Skip to content
Snippets Groups Projects
  1. Aug 13, 2017
  2. Aug 04, 2017
  3. Jul 28, 2017
    • Jonathan Wilkes's avatar
      allow class_addcreator to register an additional creator with the namespace prefix if one was used · 7cfac026
      Jonathan Wilkes authored
      This will allow legacy externals like iemmatrix and zexy to properly load
      aliases the first time when the user instantiates an object with
      [namespace_prefix/alias_name]
      
      This becomes relevant when there are kludge classes that essentially just
      "#include" the original C file of a class and add an alias_setup function
      which just calls the original setup routine. (For example, see iemmatrix.)
      However, such an approach still calls class_new with the original class name.
      Thus "namespace_prefix/classname" gets added to the pd_objectcreator
      methodspace, but "namespace_prefix/alias_name"-- which is what we want--
      does not. This results in a series of 1000 recursive calls into
      pd_objectmaker's new_anything method. (I.e., sys_load_lib finds the
      "namespace_prefix/classname" is already loaded, new_anything_sends a
      typedmess to pd_objectmaker's new_anything method, which calls
      sys_load_lib, etc.)
      
      To prevent this, we just make sure to add "namespace_prefix/alias" by
      adding the relevant lines to class_addcreator. This should really be
      happening anyway-- since internal classes don't have a class_loadsym
      they aren't affected, and externals with aliases won't work with
      namespace prefix without this.
      7cfac026
  4. Feb 18, 2017
  5. Aug 25, 2016
    • Jonathan Wilkes's avatar
      port from Pd Vanilla (some of these were already ported): 5a1b58 · d7ccb9db
      Jonathan Wilkes authored
      These bugs were discovered via static code-analysis
      https://scan.coverity.com/projects/pure-data-pure-data
      (The CID numbers are the "Coverity IDs" used to identify the various bugs)
      
      - Don't free binbuf within glist_readfrombinbuf (CID:74871)
      - it must be deleted by the caller
      - Initialize sockaddr_in (CID:74861,74862,74863,74866)
      - Initialize indelay/outdelay (CID:74864,74865)
      - Initialize device-arrays (CID:74853,74854,74855,74856)
      - Closing unneeded sockets (CID:74827)
      - Initialize sockaddr_in (CID:74860}
      - Close file-descriptor if the soundfile is unparsable (CID:74822,74823)
      - Close file-handle in cleanup (CID:74816)
      - Call va_end() when handling variadic args (CID:74872)
      - Added missing break (CID:74800)
      - Prevent NULL-dereferences (CID:74792,74793)
      - Size checks when copying into string buffers (CID:74844,74845,74846,74847,74849)
      - Freeing no-more used storage (CID:74832)
      - Fixed code block (CID:74806)
      - Initialize sockaddr_in (CID:74860)
      - Initialize array-values to 0 (CID:74867)
      - Free allocated memory (CID:74813,74830)
      - Removed allocation of unused memory
      - Use pd_free() to free templates (CID:74814)
      - template_free() does not free the entire structure (it misses the pd_new() part)
      - initialize variable (CID:77865)
      - Prevent NULL-pointer dererencing (CID:77864)
      - Free heap-allocate binbuf after use (CID:74833)
      d7ccb9db
  6. Sep 06, 2014
  7. Aug 03, 2014
  8. Jul 31, 2014
  9. Jul 11, 2014
  10. Jun 16, 2014
  11. Jun 09, 2014
  12. Aug 31, 2013
  13. Mar 21, 2013
  14. Feb 28, 2013
  15. Nov 18, 2012
  16. Nov 02, 2011
  17. Oct 30, 2011
  18. Jun 12, 2008
  19. May 22, 2008
  20. May 19, 2008
  21. Jan 15, 2008
  22. Dec 18, 2007
  23. Aug 01, 2007
Loading