4837 Total CVEs
26 Years
GitHub
README.md
Rendering markdown...
POC / unnamed.patch PATCH
Index: src/states/california.rs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/states/california.rs b/src/states/california.rs
--- a/src/states/california.rs	
+++ b/src/states/california.rs	(date 1735882470580)
@@ -145,21 +145,12 @@
         const DLDAQ: &[u8] = b"DLDAQ";
         const CR: u8 = b'\r';
         const ZC: &[u8] = b"ZC";
-        const ZCZ: &[u8] = b"ZCZ";
 
-        // Find DLDAQ section
         let dldaq_pos = memchr::memmem::find(initial_barcode, DLDAQ)?;
         let first_r_after_dl = memchr::memchr(CR, &initial_barcode[dldaq_pos..])?;
         let zc_pos = memchr::memmem::find(&initial_barcode[first_r_after_dl..], ZC)?;
         let last_r = memchr::memrchr(CR, initial_barcode)?;
 
-        // Find and print ZCZ section
-        if let Some(zcz_pos) = memchr::memmem::find(initial_barcode, ZCZ) {
-            if let Some(next_r) = memchr::memchr(CR, &initial_barcode[zcz_pos..]) {
-                println!("ZCZ offset: {}, length: {}", zcz_pos, next_r + 1);
-            }
-        }
-
         Some((dldaq_pos as u32, (last_r - dldaq_pos) as u32))
     }