diff options
author | Karel Zak <kzak@redhat.com> | 2010-12-30 20:37:22 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-12-30 20:37:22 +0100 |
commit | e02d2b9328b02cde4f4fcbe2ead1fcc871117eba (patch) | |
tree | 7cb1b296de10a256d136ef22b0f493652c165cb7 | |
parent | 98496774defa83194ba3f5099aa9f97467df9f5c (diff) | |
download | util-linux-old-e02d2b9328b02cde4f4fcbe2ead1fcc871117eba.tar.gz |
libblkid: fix endian conversion bug in NILFS
Reported-by: Andrew Nayenko <resver@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | shlibs/blkid/src/superblocks/nilfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/blkid/src/superblocks/nilfs.c b/shlibs/blkid/src/superblocks/nilfs.c index bf169182..1f8f3a69 100644 --- a/shlibs/blkid/src/superblocks/nilfs.c +++ b/shlibs/blkid/src/superblocks/nilfs.c @@ -84,7 +84,7 @@ static int probe_nilfs2(blkid_probe pr, const struct blkid_idmag *mag) if (!sb) return -1; - bytes = le32_to_cpu(sb->s_bytes); + bytes = le16_to_cpu(sb->s_bytes); crc = crc32(le32_to_cpu(sb->s_crc_seed), (unsigned char *)sb, sumoff); crc = crc32(crc, sum, 4); crc = crc32(crc, (unsigned char *)sb + sumoff + 4, bytes - sumoff - 4); |