summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:16 +0800
committerMoonchild <moonchild@palemoon.org>2020-05-20 14:03:54 +0000
commitd9496c6c3c0284d7ee9c0bd60353c12222eec542 (patch)
tree9d096acf0501c8676e4562feb0b66eca2c9f0a72
parentd74ff3aaea1fe3b5d2672facf967fbede4185a79 (diff)
downloaduxp-d9496c6c3c0284d7ee9c0bd60353c12222eec542.tar.gz
Issue mcp-graveyard/UXP#1542 - [mtransport] Fix unaligned memory allocation in r_memory
Unaligend memory access can't work on RISC.
-rw-r--r--media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c b/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
index a5c709d413..e9d001cec1 100644
--- a/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
+++ b/media/mtransport/third_party/nrappkit/src/util/libekr/r_memory.c
@@ -51,7 +51,7 @@ typedef struct r_malloc_chunk_ {
#endif
UCHAR type;
UINT4 size;
- UCHAR memory[1];
+ UINT8 memory[1];
} r_malloc_chunk;
#define CHUNK_MEMORY_OFFSET offsetof(struct r_malloc_chunk_, memory)