summaryrefslogtreecommitdiff
path: root/src/machine/org.freedesktop.machine1.service
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-02 14:25:11 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2019-05-03 12:50:30 +0200
commit38a5ae776dc62b42ef5ced8f9812771181af528b (patch)
treee09f7507d9ef8bf1236a4164021941234fd687cb /src/machine/org.freedesktop.machine1.service
parent625795e6214ae7c7f0f7f35b2c1f53e1e173b1ad (diff)
downloadsystemd-38a5ae776dc62b42ef5ced8f9812771181af528b.tar.gz
bus-message: fix calculation of offsets table
The offsets specify the ends of variable length data. We would trust the incoming data, putting the offsets specified in our message into the offsets tables after doing some superficial verification. But when actually reading the data we apply alignment, so we would take the previous offset, align it, making it bigger then current offset, and then we'd try to read data of negative length. In the attached example, the message specifies the following offsets: [1, 4] but the alignment of those items is [1, 8] so we'd calculate the second item as starting at 8 and ending at 4. (cherry picked from commit 12603b84d2fb07603e2ea94b240c6b78ad17510e) Resolves: #1696224
Diffstat (limited to 'src/machine/org.freedesktop.machine1.service')
0 files changed, 0 insertions, 0 deletions