We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f95a2 commit 0fa7a3eCopy full SHA for 0fa7a3e
2 files changed
CodeHawk/CHB/bchlibelf/bCHELFSection.ml
@@ -118,7 +118,7 @@ object (self)
118
end in
119
if Char.code s.[offset + len] = 0 then
120
let str = String.sub s offset len in
121
- let new_s = string_replace '\n' "\\n" str in
+ let new_s = string_replace '"' "\\\"" (string_replace '\r' "\\r" (string_replace '\n' "\\n" str)) in
122
begin
123
string_table#add_string va new_s;
124
Some new_s
CodeHawk/CHB/bchlibelf/bCHELFSegment.ml
@@ -86,7 +86,7 @@ object (self)
86
87
if Char.code s.[offset+len] = 0 then
88
89
90
91
string_table#add_string va new_s ;
92
0 commit comments