public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/31119] New: did not escape Golang program symbol name
@ 2023-12-07  0:44 lijunlong at openresty dot com
  2023-12-07  2:50 ` [Bug translator/31119] " lijunlong at openresty dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: lijunlong at openresty dot com @ 2023-12-07  0:44 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31119

            Bug ID: 31119
           Summary: did not escape Golang program symbol name
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: lijunlong at openresty dot com
  Target Milestone: ---

Created attachment 15242
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15242&action=edit
did not escape golang symbol

1. golang's symbol name may contain double quotation marks.

For example:
```
<386a40>   DW_AT_name        : *struct { Rates map[string]float64
"json:\"rate_by_service\"" }

```

2. get char from cpp string singed extended would get the wrong result.

```
(unsigned)str[I] is equal to (unsigned)(int)str[i]
```

We need to change to (unsigned char)str[i]

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-13 15:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07  0:44 [Bug translator/31119] New: did not escape Golang program symbol name lijunlong at openresty dot com
2023-12-07  2:50 ` [Bug translator/31119] " lijunlong at openresty dot com
2023-12-07  2:50 ` lijunlong at openresty dot com
2023-12-13 15:35 ` wcohen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).