Fix potential buffer overflow in mediadrmserver
am: 5231cc164f

Change-Id: I8ec126d09c8e5ef35a209431228ef3c49a1ee384