Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: REM cost reform

...

This noncompliant code example shows an example where the wrong type of character encoding is used with erroneous results.

Code Block
bgColor#FFCCCC
 

 


Compliant Solution

In this compliant solution ...

 
Code Block
bgColor#CCCCFF

Risk Assessment

If character data is not normalized before being passed to the NewStringUTF() function then erroneous results may be obtained.

Rule

Severity

Likelihood

Remediation Cost

Detectable

Repairable

Priority

Level

JNI04-J

Low

Probable

Medium

No

No

P4

P2

L3

Automated Detection

It may be possible to automatically detect whether character data from untrusted sources has been normalized before being passed to the NewStringUTF() function.

Bibliography

...


...