@@ -54,6 +54,7 @@ use crate::pe::section_table;
5454use crate :: pe:: utils;
5555
5656/// **N**o handlers.
57+ #[ allow( unused) ]
5758const UNW_FLAG_NHANDLER : u8 = 0x00 ;
5859/// The function has an exception handler that should be called when looking for functions that need
5960/// to examine exceptions.
@@ -1140,21 +1141,21 @@ mod tests {
11401141 const UNWIND_INFO_C_SCOPE_TABLE : & [ u8 ] = & [
11411142 // UNWIND_INFO_HDR
11421143 0x09 , 0x0F , 0x06 , 0x00 ,
1143-
1144+
11441145 // UNWIND_CODEs
11451146 0x0F , 0x64 , // UWOP_SAVE_NONVOL (Offset=6, Reg=0x0F)
11461147 0x09 , 0x00 ,
11471148 0x0F , 0x34 , // UWOP_SAVE_NONVOL (Offset=3, Reg=0x0F)
11481149 0x08 , 0x00 ,
11491150 0x0F , 0x52 , // UWOP_ALLOC_SMALL (Size = (2 * 8) + 8 = 24 bytes)
11501151 0x0B , 0x70 , // UWOP_PUSH_NONVOL (Reg=0x0B)
1151-
1152+
11521153 // Exception handler RVA
11531154 0xC0 , 0x1F , 0x00 , 0x00 , // __C_specific_handler
1154-
1155+
11551156 // Scope count
11561157 0x02 , 0x00 , 0x00 , 0x00 , // Scope table count = 2
1157-
1158+
11581159 // First C_SCOPE_TABLE entry
11591160 0x01 , 0x15 , 0x00 , 0x00 , // BeginAddress = 0x00001501
11601161 0x06 , 0x16 , 0x00 , 0x00 , // EndAddress = 0x00001606
@@ -1172,21 +1173,21 @@ mod tests {
11721173 const UNWIND_INFO_C_SCOPE_TABLE_INVALID : & [ u8 ] = & [
11731174 // UNWIND_INFO_HDR
11741175 0x09 , 0x0F , 0x06 , 0x00 ,
1175-
1176+
11761177 // UNWIND_CODEs
11771178 0x0F , 0x64 , // UWOP_SAVE_NONVOL (Offset=6, Reg=0x0F)
11781179 0x09 , 0x00 ,
11791180 0x0F , 0x34 , // UWOP_SAVE_NONVOL (Offset=3, Reg=0x0F)
11801181 0x08 , 0x00 ,
11811182 0x0F , 0x52 , // UWOP_ALLOC_SMALL (Size = (2 * 8) + 8 = 24 bytes)
11821183 0x0B , 0x70 , // UWOP_PUSH_NONVOL (Reg=0x0B)
1183-
1184+
11841185 // Exception handler RVA
11851186 0xC0 , 0x1F , 0x00 , 0x00 , // __C_specific_handler
1186-
1187+
11871188 // Scope count
11881189 0x02 , 0x00 , 0x00 , 0x00 , // Scope table count = 2
1189-
1190+
11901191 // First C_SCOPE_TABLE entry
11911192 0x01 , 0x15 , 0x00 , 0x00 , // BeginAddress = 0x00001501
11921193 0x06 , 0x16 , 0x00 , 0x00 , // EndAddress = 0x00001606
0 commit comments