Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CodeHawk/CHB/bchlibelf/bCHELFSection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ object (self)
if Char.code s.[offset + len] = 0 then
let str = String.sub s offset len in
let new_s = string_replace '\n' "\\n" str in
let new_s = string_replace '\r' "\\r" new_s in
let new_s = string_replace '"' "\\\"" new_s in
begin
string_table#add_string va new_s;
Some new_s
Expand Down
2 changes: 2 additions & 0 deletions CodeHawk/CHB/bchlibelf/bCHELFSegment.ml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ object (self)
if Char.code s.[offset+len] = 0 then
let str = String.sub s offset len in
let new_s = string_replace '\n' "\\n" str in
let new_s = string_replace '\r' "\\r" new_s in
let new_s = string_replace '"' "\\\"" new_s in
begin
string_table#add_string va new_s ;
Some new_s
Expand Down