forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB214cdf2Tahinli3 months ago821 commits

fuzz.rs578 lines, 21.4 KiBHistoryRawDownload
1//! Malformed input never panics, never hangs and never allocates without
2//! bound.
3//!
4//! Ten thousand mutations per format, from a fixed seed so a failure is
5//! reproducible: bit flips, truncations, byte injections and pure noise behind
6//! each format's signature. Every one of them must come back as `Ok` or as an
7//! `Err` — a decoder reached by a file picker is reached by every broken file
8//! on the disk.
9
10use std::path::{Path, PathBuf};
11
12const ROUNDS: usize = 10_000;
13
14fn fixtures() -> PathBuf {
15 Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures/stills")
16}
17
18/// xorshift64*, so every run mutates the same way.
19struct Rng(u64);
20
21impl Rng {
22 fn next(&mut self) -> u64 {
23 self.0 ^= self.0 << 13;
24 self.0 ^= self.0 >> 7;
25 self.0 ^= self.0 << 17;
26 self.0
27 }
28
29 fn below(&mut self, bound: usize) -> usize {
30 (self.next() % bound.max(1) as u64) as usize
31 }
32}
33
34/// One mutated copy of `seed`: a few bit flips, a truncation, or an injection.
35///
36/// `head` bounds where the flips land. Aiming them at the first few dozen
37/// bytes is what actually reaches the geometry and colour-type paths: spread
38/// over a whole file they nearly all land in the compressed data and stop at
39/// the first integrity check.
40fn mutate(rng: &mut Rng, seed: &[u8], head: Option<usize>) -> Vec<u8> {
41 let mut data = seed.to_vec();
42 let region = head.unwrap_or(data.len()).min(data.len());
43 match rng.below(4) {
44 0 => {
45 for _ in 0..1 + rng.below(8) {
46 let at = rng.below(region);
47 data[at] ^= 1 << rng.below(8);
48 }
49 }
50 1 => data.truncate(rng.below(data.len())),
51 2 => {
52 for _ in 0..1 + rng.below(16) {
53 let at = rng.below(region);
54 data[at] = (rng.next() & 0xff) as u8;
55 }
56 }
57 _ => {
58 // Keep the signature, replace the body with noise: this is the
59 // shape that exercises header fields hardest.
60 let keep = 12.min(data.len());
61 data.truncate(keep);
62 for _ in 0..rng.below(400) {
63 data.push((rng.next() & 0xff) as u8);
64 }
65 }
66 }
67 data
68}
69
70/// Recompute every chunk CRC of a mutated PNG.
71///
72/// Without this the checksum catches every mutation at the door and the
73/// decoder proper is never fuzzed at all — the sweep would prove only that
74/// CRC-32 works.
75fn repair_png_crcs(data: &mut [u8]) {
76 let mut at = 8usize;
77 while at + 12 <= data.len() {
78 let len = u32::from_be_bytes([data[at], data[at + 1], data[at + 2], data[at + 3]]) as usize;
79 if len > data.len() || at + 12 + len > data.len() {
80 return;
81 }
82 let crc = crc32(&data[at + 4..at + 8 + len]);
83 data[at + 8 + len..at + 12 + len].copy_from_slice(&crc.to_be_bytes());
84 at += 12 + len;
85 }
86}
87
88fn sweep(name: &str, seed_file: &str) {
89 let Ok(seed) = std::fs::read(fixtures().join(seed_file)) else {
90 eprintln!("skipped: fixtures/stills not generated; run scripts/gen-still-fixtures.sh");
91 return;
92 };
93 let mut rng = Rng(0x2545_f491_4f6c_dd1d ^ name.len() as u64);
94 let mut decoded = 0usize;
95 for round in 0..ROUNDS {
96 // Half the rounds aim at the header, half at the whole file.
97 let head = if round % 2 == 0 { Some(48) } else { None };
98 let mut data = mutate(&mut rng, &seed, head);
99 if seed_file.ends_with(".png") {
100 repair_png_crcs(&mut data);
101 }
102 // The call is the assertion: a panic here fails the test with the
103 // round number, and the round number plus the fixed seed reproduces it.
104 if let Ok(image) = ec_image::decode(&data) {
105 decoded += 1;
106 let pixels = image.to_rgba8();
107 assert_eq!(
108 pixels.len(),
109 (image.width as usize) * (image.height as usize) * 4,
110 "{name} round {round}: buffer does not match the dimensions"
111 );
112 }
113 // Header-only parsing must survive the same input.
114 let _ = ec_image::info(&data);
115 }
116 eprintln!("{name}: {ROUNDS} mutations, {decoded} still decoded");
117}
118
119#[test]
120fn png_survives_mutation() {
121 sweep("png", "tiny.png");
122}
123
124#[test]
125fn jpeg_survives_mutation() {
126 sweep("jpeg", "tiny.jpg");
127}
128
129#[test]
130fn webp_lossy_survives_mutation() {
131 sweep("webp-lossy", "tiny-lossy.webp");
132}
133
134#[test]
135fn webp_lossless_survives_mutation() {
136 sweep("webp-lossless", "tiny-lossless.webp");
137}
138
139#[test]
140fn gif_survives_mutation() {
141 sweep("gif", "tiny.gif");
142}
143
144/// The animation path has its own frame loop, its own canvas and its own
145/// disposal state machine, none of which `decode` reaches past frame one.
146#[test]
147fn a_gif_animation_survives_mutation() {
148 let Ok(seed) = std::fs::read(fixtures().join("animated.gif")) else {
149 eprintln!("skipped: fixtures/stills not generated; run scripts/gen-still-fixtures.sh");
150 return;
151 };
152 let mut rng = Rng(0x2545_f491_4f6c_dd1d ^ 0x9e37);
153 let mut decoded = 0usize;
154 for round in 0..ROUNDS {
155 let head = if round % 2 == 0 { Some(48) } else { None };
156 let data = mutate(&mut rng, &seed, head);
157 if let Ok(frames) = ec_image::decode_animation(&data) {
158 decoded += 1;
159 for frame in &frames {
160 let image = &frame.image;
161 assert_eq!(
162 image.to_rgba8().len(),
163 (image.width as usize) * (image.height as usize) * 4,
164 "gif-animation round {round}: buffer does not match the dimensions"
165 );
166 }
167 }
168 }
169 eprintln!("gif-animation: {ROUNDS} mutations, {decoded} still decoded");
170}
171
172/// The WebP animation path parses its own ANMF headers and composites onto a
173/// canvas sized by a different chunk, so a mutation can make the two disagree.
174#[test]
175fn an_animated_webp_survives_mutation() {
176 let Ok(seed) = std::fs::read(fixtures().join("anim-alpha.webp")) else {
177 eprintln!("skipped: fixtures/stills not generated; run scripts/gen-still-fixtures.sh");
178 return;
179 };
180 let mut rng = Rng(0x2545_f491_4f6c_dd1d ^ 0x5eed);
181 let mut decoded = 0usize;
182 for round in 0..ROUNDS {
183 let head = if round % 2 == 0 { Some(48) } else { None };
184 let data = mutate(&mut rng, &seed, head);
185 if let Ok(frames) = ec_image::decode_animation(&data) {
186 decoded += 1;
187 for frame in &frames {
188 let image = &frame.image;
189 assert_eq!(
190 image.to_rgba8().len(),
191 (image.width as usize) * (image.height as usize) * 4,
192 "webp-animation round {round}: buffer does not match the dimensions"
193 );
194 }
195 }
196 }
197 eprintln!("webp-animation: {ROUNDS} mutations, {decoded} still decoded");
198}
199
200/// BMP sizes three separate things from header fields -- a palette, a row
201/// stride and, for the run-length compressions, a decoded row buffer -- so a
202/// mutation can put any two of them in disagreement.
203#[test]
204fn bmp_survives_mutation() {
205 sweep("bmp", "tiny.bmp");
206}
207
208/// The run-length path is the one that writes at a position the *file* chooses
209/// (delta codes move the cursor), so it gets its own seed.
210#[test]
211fn a_run_length_bmp_survives_mutation() {
212 sweep("bmp-rle", "rle8.bmp");
213}
214
215/// TIFF is a directory of offsets into itself: a mutation can point a strip,
216/// a palette or the directory's own continuation anywhere in the file.
217#[test]
218fn tiff_survives_mutation() {
219 sweep("tiff", "tiny.tiff");
220}
221
222/// The compressed, predicted path decodes into a row buffer whose length comes
223/// from tags the mutation is free to disagree about, so it gets its own seed.
224#[test]
225fn a_compressed_tiff_survives_mutation() {
226 sweep("tiff-lzw", "rgb8-lzw-pred.tiff");
227}
228
229#[test]
230fn arbitrary_bytes_behind_a_signature_are_refused_not_believed() {
231 let signatures: [&[u8]; 6] = [
232 &[0x89, b'P', b'N', b'G', 0x0d, 0x0a, 0x1a, 0x0a],
233 &[0xff, 0xd8, 0xff, 0xe0],
234 b"RIFF\x40\x00\x00\x00WEBPVP8 ",
235 b"GIF89a",
236 // A TIFF header whose directory offset is inside the header itself.
237 b"II\x2a\x00\x04\x00\x00\x00",
238 // "BM" alone is two bytes anything could start with, so the guess also
239 // asks the file header to agree with itself: this prefix declares a
240 // 40-byte info header and pixels at 54, which is what makes the bytes
241 // behind it reach the decoder at all.
242 b"BM\x00\x10\x00\x00\x00\x00\x00\x00\x36\x00\x00\x00\x28\x00\x00\x00",
243 ];
244 let mut rng = Rng(0x9e37_79b9_7f4a_7c15);
245 for signature in signatures {
246 for _ in 0..ROUNDS / 4 {
247 let mut data = signature.to_vec();
248 for _ in 0..rng.below(200) {
249 data.push((rng.next() & 0xff) as u8);
250 }
251 let _ = ec_image::decode(&data);
252 let _ = ec_image::info(&data);
253 }
254 }
255}
256
257#[test]
258fn a_header_asking_for_more_pixels_than_the_limit_is_refused() {
259 // A PNG IHDR claiming 65535x65535 is 4 gigapixels: the limit must refuse
260 // it before any buffer is sized from those numbers.
261 let mut png = vec![0x89, b'P', b'N', b'G', 0x0d, 0x0a, 0x1a, 0x0a];
262 let mut ihdr = Vec::new();
263 ihdr.extend_from_slice(&65535u32.to_be_bytes());
264 ihdr.extend_from_slice(&65535u32.to_be_bytes());
265 ihdr.extend_from_slice(&[8, 6, 0, 0, 0]);
266 png.extend_from_slice(&(ihdr.len() as u32).to_be_bytes());
267 let start = png.len();
268 png.extend_from_slice(b"IHDR");
269 png.extend_from_slice(&ihdr);
270 let crc = crc32(&png[start..]);
271 png.extend_from_slice(&crc.to_be_bytes());
272 let err = ec_image::decode(&png).expect_err("4 gigapixels is past the limit");
273 assert!(format!("{err}").contains("limit"), "{err}");
274}
275
276/// LSB-first bit packer, matching how every decoder in this crate reads a
277/// GIF LZW or VP8L bitstream: used to hand-craft the smallest possible valid
278/// compressed payload for the budget tests below.
279struct BitWriter {
280 buffer: u64,
281 bits: u8,
282 out: Vec<u8>,
283}
284
285impl BitWriter {
286 fn new() -> Self {
287 BitWriter {
288 buffer: 0,
289 bits: 0,
290 out: Vec::new(),
291 }
292 }
293
294 fn push(&mut self, value: u16, width: u8) {
295 self.buffer |= u64::from(value) << self.bits;
296 self.bits += width;
297 while self.bits >= 8 {
298 self.out.push((self.buffer & 0xff) as u8);
299 self.buffer >>= 8;
300 self.bits -= 8;
301 }
302 }
303
304 fn finish(mut self) -> Vec<u8> {
305 if self.bits > 0 {
306 self.out.push((self.buffer & 0xff) as u8);
307 }
308 self.out
309 }
310}
311
312/// A minimal GIF: no global colour table, one 0x2C image descriptor with a
313/// 2-colour local table and a one-pixel LZW stream (clear, colour 0, end),
314/// followed by the trailer. `canvas_w`/`canvas_h` size the logical screen;
315/// the frame itself is always 1x1 so its own indices buffer is trivial —
316/// what grows per frame is the *composited canvas* `composite` clones.
317fn one_pixel_gif(canvas_w: u16, canvas_h: u16, frames: usize) -> Vec<u8> {
318 let mut w = BitWriter::new();
319 w.push(4, 3); // clear code (min_code_size 2 -> clear = 1<<2)
320 w.push(0, 3); // colour index 0, literal
321 w.push(5, 3); // end code
322 let lzw = w.finish();
323
324 let mut data = Vec::new();
325 data.extend_from_slice(b"GIF87a");
326 data.extend_from_slice(&canvas_w.to_le_bytes());
327 data.extend_from_slice(&canvas_h.to_le_bytes());
328 data.push(0x00); // no global colour table
329 data.push(0);
330 data.push(0);
331 for _ in 0..frames {
332 data.push(0x2C);
333 data.extend_from_slice(&0u16.to_le_bytes()); // left
334 data.extend_from_slice(&0u16.to_le_bytes()); // top
335 data.extend_from_slice(&1u16.to_le_bytes()); // width
336 data.extend_from_slice(&1u16.to_le_bytes()); // height
337 data.push(0x80); // has LCT, sorted=0, size field 0 -> 2 colours
338 data.extend_from_slice(&[0, 0, 0, 255, 255, 255]); // 2-colour LCT
339 data.push(2); // min code size
340 data.push(lzw.len() as u8);
341 data.extend_from_slice(&lzw);
342 data.push(0); // sub-block terminator
343 }
344 data.push(0x3B); // trailer
345 data
346}
347
348#[test]
349fn a_gif_frame_asking_for_more_pixels_than_the_limit_is_refused() {
350 // A single 0x2C image descriptor declaring a 60000x60000 frame: the
351 // frame's own rectangle is a header field like the canvas is, and must
352 // be refused before it sizes the indices buffer below it.
353 let mut data = Vec::new();
354 data.extend_from_slice(b"GIF87a");
355 data.extend_from_slice(&4u16.to_le_bytes());
356 data.extend_from_slice(&4u16.to_le_bytes());
357 data.push(0x00);
358 data.push(0);
359 data.push(0);
360 data.push(0x2C);
361 data.extend_from_slice(&0u16.to_le_bytes());
362 data.extend_from_slice(&0u16.to_le_bytes());
363 data.extend_from_slice(&60000u16.to_le_bytes());
364 data.extend_from_slice(&60000u16.to_le_bytes());
365 data.push(0x00);
366
367 let start = std::time::Instant::now();
368 let err = ec_image::decode_animation(&data).expect_err("60000x60000 frame is past the limit");
369 assert!(start.elapsed().as_millis() < 100, "{:?}", start.elapsed());
370 assert!(format!("{err}").contains("limit"), "{err}");
371}
372
373#[test]
374fn a_gif_with_many_tiny_frames_over_a_huge_canvas_is_refused_by_the_total_budget() {
375 // Each frame is 1x1 -- cheap to encode, cheap to check on its own -- but
376 // `composite` clones the *whole* canvas onto the result once per frame.
377 // A canvas near the single-buffer limit, repeated a few dozen times,
378 // must be caught by the decode-wide budget even though no single frame
379 // or single buffer ever looks large by itself.
380 let data = one_pixel_gif(16000, 16000, 64);
381 let start = std::time::Instant::now();
382 let err = ec_image::decode_animation(&data)
383 .expect_err("64 clones of a near-limit canvas is past the total budget");
384 // A few real canvas clones run before the budget catches up (the budget
385 // is spent per frame, so it can't refuse before at least one clone), so
386 // this bounds "a handful of gigabyte copies", not "no allocation at all".
387 assert!(start.elapsed().as_secs() < 5, "{:?}", start.elapsed());
388 assert!(format!("{err}").contains("limit"), "{err}");
389}
390
391#[test]
392fn a_gif_with_a_few_tiny_frames_over_a_huge_canvas_still_decodes() {
393 // The other side of the same budget: a handful of frames over a large
394 // canvas is exactly what a real animation looks like, and must not be
395 // refused just because the guard above exists.
396 let data = one_pixel_gif(4000, 4000, 3);
397 let frames = ec_image::decode_animation(&data).expect("well within every limit");
398 assert_eq!(frames.len(), 3);
399}
400
401/// A minimal RIFF WebP with an ANIM/VP8X header and `frames` ANMF chunks,
402/// each carrying a 1x1 VP8L payload (the smallest valid lossless image: a
403/// bitstream header plus one pixel, no transforms, no colour cache).
404fn one_pixel_animated_webp(canvas_w: u32, canvas_h: u32, frames: usize) -> Vec<u8> {
405 // VP8L bitstream for a 1x1 image: signature 0x2f, 14-bit width-1=0,
406 // 14-bit height-1=0, 1-bit alpha flag=0, 3-bit version=0, then the
407 // image data: no colour cache, no meta prefix, one simple prefix code
408 // per channel (colour index 0 for all four), then the single pixel.
409 let mut w = BitWriter::new();
410 w.push(0, 14); // width - 1
411 w.push(0, 14); // height - 1
412 w.push(0, 1); // alpha_is_used
413 w.push(0, 3); // version
414 w.push(0, 1); // no transform
415 w.push(0, 1); // no colour cache
416 w.push(0, 1); // no meta prefix
417 for _ in 0..5 {
418 // green/red/blue/alpha/distance, in that order: a simple code, one
419 // symbol, value 0.
420 w.push(1, 1); // simple code
421 w.push(0, 1); // one symbol
422 w.push(0, 1); // symbol is not a literal byte read as 8 bits
423 w.push(0, 1); // symbol0 = 0
424 }
425 let vp8l_bits = w.finish();
426 let mut vp8l = vec![0x2f];
427 vp8l.extend_from_slice(&vp8l_bits);
428 if vp8l.len() % 2 == 1 {
429 vp8l.push(0);
430 }
431
432 fn chunk(tag: &[u8; 4], body: &[u8]) -> Vec<u8> {
433 let mut c = Vec::new();
434 c.extend_from_slice(tag);
435 c.extend_from_slice(&(body.len() as u32).to_le_bytes());
436 c.extend_from_slice(body);
437 if body.len() % 2 == 1 {
438 c.push(0);
439 }
440 c
441 }
442
443 let mut vp8x = vec![0x02, 0, 0, 0]; // flags: bit 0x02 is "has animation"
444 let off24 = |v: u32| v.to_le_bytes()[..3].to_vec();
445 let dim24 = |v: u32| (v - 1).to_le_bytes()[..3].to_vec();
446 vp8x.extend_from_slice(&dim24(canvas_w));
447 vp8x.extend_from_slice(&dim24(canvas_h));
448 let mut anim = vec![0, 0, 0, 0, 0, 0]; // background colour
449 anim.extend_from_slice(&0u16.to_le_bytes()); // loop count
450
451 let mut anmf_body = Vec::new();
452 anmf_body.extend_from_slice(&off24(0)); // x offset (raw value, x = field*2)
453 anmf_body.extend_from_slice(&off24(0)); // y offset
454 anmf_body.extend_from_slice(&dim24(1)); // width - 1
455 anmf_body.extend_from_slice(&dim24(1)); // height - 1
456 anmf_body.extend_from_slice(&off24(1)); // duration
457 anmf_body.push(0x00); // reserved/blend/dispose
458 anmf_body.extend_from_slice(&chunk(b"VP8L", &vp8l));
459
460 let mut payload = Vec::new();
461 payload.extend_from_slice(&chunk(b"VP8X", &vp8x));
462 payload.extend_from_slice(&chunk(b"ANIM", &anim));
463 for _ in 0..frames {
464 payload.extend_from_slice(&chunk(b"ANMF", &anmf_body));
465 }
466
467 let mut data = Vec::new();
468 data.extend_from_slice(b"RIFF");
469 data.extend_from_slice(&(4 + payload.len() as u32).to_le_bytes());
470 data.extend_from_slice(b"WEBP");
471 data.extend_from_slice(&payload);
472 data
473}
474
475#[test]
476fn a_webp_animation_with_many_tiny_frames_over_a_huge_canvas_is_refused_by_the_total_budget() {
477 // The WebP analogue of the GIF test above: `decode_frames` clones the
478 // whole composited canvas into the result once per ANMF chunk.
479 let data = one_pixel_animated_webp(16000, 16000, 64);
480 let start = std::time::Instant::now();
481 let err = ec_image::decode_animation(&data)
482 .expect_err("64 clones of a near-limit canvas is past the total budget");
483 assert!(start.elapsed().as_millis() < 2000, "{:?}", start.elapsed());
484 assert!(format!("{err}").contains("limit"), "{err}");
485}
486
487/// Build an LZW-compressed data stream that keeps expanding after the
488/// dictionary itself has stopped growing: a run of `cScSc` codes (each equal
489/// to the not-yet-assigned `next_code`) fills the 4096-entry dictionary with
490/// entries of increasing length, then a run of plain references to the
491/// longest entry keeps emitting ~4 KB of output per 12-bit code with no
492/// further dictionary growth to bound it. This is the classic GIF LZW bomb:
493/// a stream well under 200 KB that decodes, uncapped, to hundreds of
494/// megabytes.
495fn lzw_bomb() -> Vec<u8> {
496 let min_code_size = 2u8;
497 let clear_code = 1u16 << min_code_size; // 4
498 let end_code = clear_code + 1; // 5
499 let mut next_code = clear_code + 2; // 6
500 let mut code_size = min_code_size + 1; // 3
501
502 let mut w = BitWriter::new();
503 w.push(clear_code, code_size);
504 w.push(0, code_size); // first code after clear: a literal, no dictionary entry
505
506 // Phase 1: cScSc every time -- fills the dictionary, entries growing
507 // 2, 3, 4, ... bytes long (mirrors `Lzw::derive`'s widening rule exactly,
508 // so the decoder reads this stream at the same code width we wrote it).
509 while next_code < 4096 {
510 w.push(next_code, code_size);
511 if next_code >= (1u16 << code_size) - 1 && code_size < 12 {
512 code_size += 1;
513 }
514 next_code += 1;
515 }
516
517 // Phase 2: dictionary is full (`derive` is now a no-op), so repeating the
518 // longest entry's code keeps producing ~4 KB per code with nothing left
519 // to cap it.
520 let longest = next_code - 1;
521 for _ in 0..100_000 {
522 w.push(longest, code_size);
523 }
524
525 w.push(end_code, code_size);
526 w.finish()
527}
528
529/// A GIF whose frame declares 4x4 (16 indices) but whose LZW stream, if
530/// decoded past that point, expands to hundreds of megabytes: guards the
531/// `lzw_decode` bound at gif.rs that stops the loop once `out` already holds
532/// `expected` bytes, rather than only checking after the loop.
533#[test]
534fn a_gif_lzw_bomb_does_not_expand_past_its_declared_frame() {
535 let lzw = lzw_bomb();
536 eprintln!("gif-lzw-bomb: {} bytes of LZW data", lzw.len());
537
538 let mut data = Vec::new();
539 data.extend_from_slice(b"GIF87a");
540 data.extend_from_slice(&4u16.to_le_bytes());
541 data.extend_from_slice(&4u16.to_le_bytes());
542 data.push(0x00); // no global colour table
543 data.push(0);
544 data.push(0);
545 data.push(0x2C);
546 data.extend_from_slice(&0u16.to_le_bytes()); // left
547 data.extend_from_slice(&0u16.to_le_bytes()); // top
548 data.extend_from_slice(&4u16.to_le_bytes()); // width
549 data.extend_from_slice(&4u16.to_le_bytes()); // height
550 data.push(0x81); // has LCT, size field 1 -> 4 colours (indices 0..3)
551 data.extend_from_slice(&[0, 0, 0, 64, 64, 64, 128, 128, 128, 255, 255, 255]);
552 data.push(2); // min code size
553 for chunk in lzw.chunks(255) {
554 data.push(chunk.len() as u8);
555 data.extend_from_slice(chunk);
556 }
557 data.push(0); // sub-block terminator
558 data.push(0x3B); // trailer
559
560 let start = std::time::Instant::now();
561 let _ = ec_image::decode(&data);
562 assert!(start.elapsed().as_secs() < 1, "{:?}", start.elapsed());
563}
564
565fn crc32(data: &[u8]) -> u32 {
566 let mut c = 0xffff_ffffu32;
567 for &b in data {
568 c ^= u32::from(b);
569 for _ in 0..8 {
570 c = if c & 1 != 0 {
571 0xedb8_8320 ^ (c >> 1)
572 } else {
573 c >> 1
574 };
575 }
576 }
577 c ^ 0xffff_ffff
578}