1. 04 Apr, 2014 7 commits
  2. 03 Apr, 2014 6 commits
    • Christopher Ferris's avatar
      Create an UnwindMapLocal object. · e2960910
      Christopher Ferris authored
      The way libunwind handles local unwinds is different from remote unwinds,
      so create a new map object to handle the differences.
      
      Add new test to verify the map data is being generated correctly.
      
      Add new tests to check for leaks.
      
      Refactor the BACK_LOGW code into a single header file.
      
      Change-Id: I01f3cbfc4b927646174ea1b614fa25d23b9b3427
      e2960910
    • Geremy Condra's avatar
    • Elliott Hughes's avatar
      am 5f130216: Merge "Handle errno properly to avoid corrupt str_parms" · 56d57e88
      Elliott Hughes authored
      * commit '5f130216':
        Handle errno properly to avoid corrupt str_parms
      56d57e88
    • Elliott Hughes's avatar
    • Jens Gulin's avatar
      Handle errno properly to avoid corrupt str_parms · d3c8d5b8
      Jens Gulin authored
      A normal sequence of calls is as follows:
      str_parms_create_str, str_parms_add_str, str_parms_destroy.
      In some cases the destroy caused double free.
      
      str_parms_add_str will clone the input and send it to hashmapPut
      for storage. If hashmapPut did not store the strings it will raise
      errno = ENOMEM and leave caller with ownership of the strings.
      In any of these cases it will be safe to destroy the str_parms.
      
      But what if it wasn't hashmapPut that said NOMEM? What if there
      was a stale NOMEM already before a successful hashmapPut?
      In that case the strings will be successfully added to the list
      (if new), but when str_parms_add_str sees the NOMEM it will free
      them anyway, leaving dangling pointers in the str_parms!!
      
      It is the responsibility of the caller to clear errno before any
      interesting call. This patch makes sure that str_parms_add_str
      reacts only on errno emmitted from hashmapPut.
      
      Change-Id: If87e4bcc482f09e1c66133d33517b152ebdac65f
      d3c8d5b8
    • Geremy Condra's avatar
      fs_mgr: disable verified partitions on debuggable devices. · cd642fc0
      Geremy Condra authored
      This checks ro.debuggable to determine whether a device is in the
      debuggable state or not, disabling verification if it is.
      
      Eventually we'd like to narrow this down to only devices which
      need to disable it, but we aren't there yet.
      
      Change-Id: I06a329fe5449deab6bae595877dbb1f200850241
      cd642fc0
  3. 02 Apr, 2014 12 commits
  4. 01 Apr, 2014 15 commits