Closed hadess closed 11 months ago
CC @phako
Looks like an oversight introduced when this function was added back in 2015 (004b7b2ca0e95d34a302c3b5c75ffd86ed64dd6b in flatpak). I'm no D-Bus internals expert, but i can't see why this change wouldn't be correct.
I've added a reference to that commit, thanks!
Nice catch. The fix looks correct to me as well
According to the D-Bus specifications: https://dbus.freedesktop.org/doc/dbus-specification.html#id-1.4.4
But the code was trying to parse the 32-bit integer as an 8-bit one, meaning that, as was the case with object paths created by the dLeyna project, a 259-byte long string would be parsed like a 3-byte long one.