We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f95a2 commit 8fc601cCopy full SHA for 8fc601c
2 files changed
CodeHawk/CHB/bchlibelf/bCHELFSection.ml
@@ -119,6 +119,8 @@ object (self)
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
122
+ let new_s = string_replace '\r' "\\r" new_s in
123
+ let new_s = string_replace '"' "\\\"" new_s in
124
begin
125
string_table#add_string va new_s;
126
Some new_s
CodeHawk/CHB/bchlibelf/bCHELFSegment.ml
@@ -87,6 +87,8 @@ object (self)
87
if Char.code s.[offset+len] = 0 then
88
89
90
91
92
93
string_table#add_string va new_s ;
94
0 commit comments