@@ -151,8 +151,8 @@ static size_t unpack_u16_chunk(struct aa_ext *e, char **chunk)
151
151
152
152
if (!inbounds (e , sizeof (u16 )))
153
153
return 0 ;
154
- size = le16_to_cpu (get_unaligned ((u16 * ) e -> pos ));
155
- e -> pos += sizeof (u16 );
154
+ size = le16_to_cpu (get_unaligned ((__le16 * ) e -> pos ));
155
+ e -> pos += sizeof (__le16 );
156
156
if (!inbounds (e , size ))
157
157
return 0 ;
158
158
* chunk = e -> pos ;
@@ -223,7 +223,7 @@ static bool unpack_u32(struct aa_ext *e, u32 *data, const char *name)
223
223
if (!inbounds (e , sizeof (u32 )))
224
224
return 0 ;
225
225
if (data )
226
- * data = le32_to_cpu (get_unaligned ((u32 * ) e -> pos ));
226
+ * data = le32_to_cpu (get_unaligned ((__le32 * ) e -> pos ));
227
227
e -> pos += sizeof (u32 );
228
228
return 1 ;
229
229
}
@@ -236,7 +236,7 @@ static bool unpack_u64(struct aa_ext *e, u64 *data, const char *name)
236
236
if (!inbounds (e , sizeof (u64 )))
237
237
return 0 ;
238
238
if (data )
239
- * data = le64_to_cpu (get_unaligned ((u64 * ) e -> pos ));
239
+ * data = le64_to_cpu (get_unaligned ((__le64 * ) e -> pos ));
240
240
e -> pos += sizeof (u64 );
241
241
return 1 ;
242
242
}
@@ -249,7 +249,7 @@ static size_t unpack_array(struct aa_ext *e, const char *name)
249
249
int size ;
250
250
if (!inbounds (e , sizeof (u16 )))
251
251
return 0 ;
252
- size = (int )le16_to_cpu (get_unaligned ((u16 * ) e -> pos ));
252
+ size = (int )le16_to_cpu (get_unaligned ((__le16 * ) e -> pos ));
253
253
e -> pos += sizeof (u16 );
254
254
return size ;
255
255
}
@@ -262,7 +262,7 @@ static size_t unpack_blob(struct aa_ext *e, char **blob, const char *name)
262
262
u32 size ;
263
263
if (!inbounds (e , sizeof (u32 )))
264
264
return 0 ;
265
- size = le32_to_cpu (get_unaligned ((u32 * ) e -> pos ));
265
+ size = le32_to_cpu (get_unaligned ((__le32 * ) e -> pos ));
266
266
e -> pos += sizeof (u32 );
267
267
if (inbounds (e , (size_t ) size )) {
268
268
* blob = e -> pos ;
0 commit comments