@@ -96,9 +96,7 @@ abstract class BufferWrite extends Expr {
96
96
* than their true maximum length. This can be helpful in determining the
97
97
* cause of a buffer overflow issue.
98
98
*/
99
- int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
100
- result = getMaxData ( reason )
101
- }
99
+ int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxData ( reason ) }
102
100
103
101
/**
104
102
* Gets the size of a single character of the type this
@@ -207,13 +205,9 @@ class StrCatBW extends BufferWriteCall {
207
205
this .getArgument ( this .getParamSrc ( ) ) .( AnalysedString ) .getMaxLength ( ) * this .getCharSize ( )
208
206
}
209
207
210
- override int getMaxData ( BufferWriteEstimationReason reason ) {
211
- result = getMaxDataImpl ( reason )
212
- }
208
+ override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
213
209
214
- deprecated override int getMaxData ( ) {
215
- result = max ( getMaxDataImpl ( _) )
216
- }
210
+ deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
217
211
}
218
212
219
213
/**
@@ -288,7 +282,9 @@ class SprintfBW extends BufferWriteCall {
288
282
)
289
283
}
290
284
291
- override int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxDataLimitedImpl ( reason ) }
285
+ override int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
286
+ result = getMaxDataLimitedImpl ( reason )
287
+ }
292
288
293
289
deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
294
290
}
@@ -399,7 +395,9 @@ class SnprintfBW extends BufferWriteCall {
399
395
)
400
396
}
401
397
402
- override int getMaxDataLimited ( BufferWriteEstimationReason reason ) { result = getMaxDataLimitedImpl ( reason ) }
398
+ override int getMaxDataLimited ( BufferWriteEstimationReason reason ) {
399
+ result = getMaxDataLimitedImpl ( reason )
400
+ }
403
401
404
402
deprecated override int getMaxDataLimited ( ) { result = max ( getMaxDataLimitedImpl ( _) ) }
405
403
}
@@ -499,9 +497,7 @@ class ScanfBW extends BufferWrite {
499
497
)
500
498
}
501
499
502
- override int getMaxData ( BufferWriteEstimationReason reason ) {
503
- result = getMaxDataImpl ( reason )
504
- }
500
+ override int getMaxData ( BufferWriteEstimationReason reason ) { result = getMaxDataImpl ( reason ) }
505
501
506
502
deprecated override int getMaxData ( ) { result = max ( getMaxDataImpl ( _) ) }
507
503
0 commit comments