Mageia Bugzilla – Attachment 11980 Details for
Bug 27555
junit new security issue CVE-2020-15250
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Primary test file
Calculator.java (text/plain), 197 bytes, created by
Herman Viaene
on 2020-11-07 11:32:45 CET
(
hide
)
Description:
Primary test file
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2020-11-07 11:32:45 CET
Size:
197 bytes
patch
obsolete
>public class Calculator { > public int evaluate(String expression) { > int sum = 0; > for (String summand: expression.split("\\+")) > sum += Integer.valueOf(summand); > return sum; > } >}
public class Calculator { public int evaluate(String expression) { int sum = 0; for (String summand: expression.split("\\+")) sum += Integer.valueOf(summand); return sum; } }
View Attachment As Raw
Actions:
View
Attachments on
bug 27555
: 11980 |
11981