Changeset 1c88835 in mainline for uspace/srv/fs/cdfs/cdfs_ops.c


Ignore:
Timestamp:
2017-07-08T16:12:03Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89e2aac
Parents:
3cd27c1
Message:

Fix CDFS unaligned memory access when decoding Joliet file names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_ops.c

    r3cd27c1 r1c88835  
    5252#include <byteorder.h>
    5353#include <macros.h>
     54#include <unaligned.h>
     55
    5456#include "cdfs.h"
    5557#include "cdfs_endian.h"
     
    458460                size_t i;
    459461                for (i = 0; i < dsize / sizeof(uint16_t); i++) {
    460                         buf[i] = uint16_t_be2host(((uint16_t *)data)[i]);
     462                        buf[i] = uint16_t_be2host(
     463                            ((unaligned_uint16_t *)data)[i]);
    461464                }
    462465               
Note: See TracChangeset for help on using the changeset viewer.