1 // Copyright 2021 Code Intelligence GmbH 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package com.code_intelligence.jazzer.api; 16 17 /** 18 * Thrown to indicate that a fuzz target has detected a medium severity security issue rather than a 19 * normal bug. 20 * <p> 21 * There is only a semantical but no functional difference between throwing exceptions of this type 22 * or any other. However, automated fuzzing platforms can use the extra information to handle the 23 * detected issues appropriately. 24 */ 25 public class FuzzerSecurityIssueMedium extends RuntimeException { FuzzerSecurityIssueMedium()26 public FuzzerSecurityIssueMedium() {} 27 FuzzerSecurityIssueMedium(String message)28 public FuzzerSecurityIssueMedium(String message) { 29 super(message); 30 } 31 FuzzerSecurityIssueMedium(String message, Throwable cause)32 public FuzzerSecurityIssueMedium(String message, Throwable cause) { 33 super(message, cause); 34 } 35 FuzzerSecurityIssueMedium(Throwable cause)36 public FuzzerSecurityIssueMedium(Throwable cause) { 37 super(cause); 38 } 39 } 40