Menu

#384 Backslashes are not masked correctly

v1.1.x
fixed
critical (96)
v1.1.1
Bug Fix
2018-11-11
2018-10-14
Erik Hänel
No

Backslashes in strings are not masked correctly if one creates a substring of such a string.

Analysis:

The issue is that the substr() function doesn't append a white space to backslashes.

Implementation:

  • Implementation: The fix was done as proposed by the analysis.
  • Revision: [r402]
  • Implementation test: Substrings were created with zero or more characters distance to a backslash without any deviation.

Documentation:

  • ChangesLog: updated
  • Comments: Not needed
  • Documentation articles: Not needed
  • Language files: Not needed

Tests:

This fix was tested in the automatic SW tests. No deviations detected.

Related

Commit: [r402]

Discussion

  • Erik Hänel

    Erik Hänel - 2018-10-14
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2018-10-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,18 @@
     Backslashes in strings are not masked correctly if one creates a substring of such a string.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* ChangesLog: (*Have you updated the changes log?*)
    +* Comments: (*Have you written comments in the code, which describe your change?*)
    +* Documentation articles: (*Have you updated the documentation articles?*)
    +* Language files: (*Have you updated the language files?*)
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2018-10-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Backslashes in strings are not masked correctly if one creates a substring of such a string.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +The issue is that the `substr()` function doesn't append a white space to backslashes.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2018-10-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,15 +4,15 @@
     The issue is that the `substr()` function doesn't append a white space to backslashes.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: The fix was done as proposed by the analysis.
    +* Revision: [r402]
    +* Implementation test: Substrings were created with zero or more characters distance to a backslash without any deviation.
    
     ###Documentation:
    -* ChangesLog: (*Have you updated the changes log?*)
    -* Comments: (*Have you written comments in the code, which describe your change?*)
    -* Documentation articles: (*Have you updated the documentation articles?*)
    -* Language files: (*Have you updated the language files?*)
    +* ChangesLog: updated
    +* Comments: Not needed
    +* Documentation articles: Not needed
    +* Language files: Not needed
    
     ###Tests:
     (*Describe, which tests you performed and their outcome*)
    
    • status: implementing --> testing
     

    Related

    Commit: [r402]

  • Erik Hänel

    Erik Hänel - 2018-11-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -15,4 +15,4 @@
    
     * Language files: Not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +This fix was tested in the automatic SW tests. No deviations detected.
    
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB