@@ -96,9 +96,7 @@ abstract class BufferWrite extends Expr {
9696 * than their true maximum length. This can be helpful in determining the
9797 * cause of a buffer overflow issue.
9898 */
99- int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
100- result = getMaxData ( reason )
101- }
99+ int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxData ( reason ) }
102100
103101 /**
104102 * Gets the size of a single character of the type this
@@ -207,13 +205,9 @@ class StrCatBW extends BufferWriteCall {
207205 this .getArgument ( this .getParamSrc ( ) ) .( AnalysedString ) .getMaxLength ( ) * this .getCharSize ( )
208206 }
209207
210- override int getMaxData ( BufferWriteEstimationReason reason ) {
211- result = getMaxDataImpl ( reason )
212- }
208+ override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
213209
214- deprecated override int getMaxData ( ) {
215- result = max ( getMaxDataImpl ( _) )
216- }
210+ deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
217211}
218212
219213/**
@@ -288,7 +282,9 @@ class SprintfBW extends BufferWriteCall {
288282 )
289283 }
290284
291- override int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxDataLimitedImpl ( reason ) }
285+ override int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
286+ result = getMaxDataLimitedImpl ( reason )
287+ }
292288
293289 deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
294290}
@@ -399,7 +395,9 @@ class SnprintfBW extends BufferWriteCall {
399395 )
400396 }
401397
402- override int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxDataLimitedImpl ( reason ) }
398+ override int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
399+ result = getMaxDataLimitedImpl ( reason )
400+ }
403401
404402 deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
405403}
@@ -499,9 +497,7 @@ class ScanfBW extends BufferWrite {
499497 )
500498 }
501499
502- override int getMaxData ( BufferWriteEstimationReason reason ) {
503- result = getMaxDataImpl ( reason )
504- }
500+ override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
505501
506502 deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
507503
0 commit comments