File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,10 +280,10 @@ struct
280280 (match shift_amount_negcheck y with
281281 | `NonNeg -> Checks. safe Checks.Category. InvalidShift
282282 | `Neg ->
283- M. error ~category: M.Category.Integer. overflow ~tags: [CWE 758 ] " Shift-left by negative amount is undefined behavior" ;
283+ M. error ~category: M.Category.Behavior.Undefined. other ~tags: [CWE 758 ] " Shift-left by negative amount is undefined behavior" ;
284284 Checks. error Checks.Category. InvalidShift " Shift-left by negative amount is undefined behavior"
285285 | `MayNeg ->
286- M. warn ~category: M.Category.Integer. overflow ~tags: [CWE 758 ] " Shift-left by possibly negative amount may be undefined behavior" ;
286+ M. warn ~category: M.Category.Behavior.Undefined. other ~tags: [CWE 758 ] " Shift-left by possibly negative amount may be undefined behavior" ;
287287 Checks. warn Checks.Category. InvalidShift " Shift-left by possibly negative amount may be undefined behavior" );
288288 ID. shift_left x y
289289 | Shiftrt ->
@@ -292,10 +292,10 @@ struct
292292 (match shift_amount_negcheck y with
293293 | `NonNeg -> Checks. safe Checks.Category. InvalidShift
294294 | `Neg ->
295- M. error ~category: M.Category.Integer. overflow ~tags: [CWE 758 ] " Shift-right by negative amount is undefined behavior" ;
295+ M. error ~category: M.Category.Behavior.Undefined. other ~tags: [CWE 758 ] " Shift-right by negative amount is undefined behavior" ;
296296 Checks. error Checks.Category. InvalidShift " Shift-right by negative amount is undefined behavior"
297297 | `MayNeg ->
298- M. warn ~category: M.Category.Integer. overflow ~tags: [CWE 758 ] " Shift-right by possibly negative amount may be undefined behavior" ;
298+ M. warn ~category: M.Category.Behavior.Undefined. other ~tags: [CWE 758 ] " Shift-right by possibly negative amount may be undefined behavior" ;
299299 Checks. warn Checks.Category. InvalidShift " Shift-right by possibly negative amount may be undefined behavior" );
300300 ID. shift_right x y
301301 | LAnd -> id_binary_log (&& ) ~annihilator: false result_ik
You can’t perform that action at this time.
0 commit comments