Skip to content

Commit

Permalink
Fix: Xerces ModelUtils wrapper must tolerate string constants that ha…
Browse files Browse the repository at this point in the history
…ve no taint yet.
  • Loading branch information
jon-bell committed Jul 10, 2021
1 parent 9b09d1b commit 8aabc20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions knarr/src/main/java/edu/gmu/swe/knarr/runtime/ModelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ private static Expression generateStringConstraints(String receiver, String s) {
if (buffTaints != null && buffTaints.taints != null) {
// Copy length taints from offset
// ret.valuePHOSPHOR_TAG = new LazyCharArrayObjTags(length);
if(ret.valuePHOSPHOR_TAG == null){
ret.valuePHOSPHOR_TAG = new LazyCharArrayObjTags(ret.value);
}
ret.valuePHOSPHOR_TAG.taints = new Taint[length];

try {
Expand Down

0 comments on commit 8aabc20

Please sign in to comment.