am fed0f06b: Merge "init: Fix memory corruption when sanitizing platform paths"

* commit 'fed0f06bf04c6de90ae7b2f8ae9158ab2200498e':
  init: Fix memory corruption when sanitizing platform paths