[PATCH 2/3] regedit: Correctly calculate REG_MULTI_SZ lengths before reading from the buffer