public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, mikuback@linux.microsoft.com
Subject: Re: [edk2-devel] CodeQL Analysis in edk2
Date: Mon, 13 Nov 2023 14:42:02 +0100	[thread overview]
Message-ID: <f5298947-bcff-eb96-d1b5-25b2491595b1@redhat.com> (raw)
In-Reply-To: <7c8e4787-74e4-f144-123f-9d44d094ce86@redhat.com>

sorry, unfinished thought:

On 11/13/23 14:39, Laszlo Ersek wrote:

> - the "sarif emacs" output seems a bit broken, actually, so it's not usable. Consider the following entry from the original JSON file:
> 
>     }, {
>       "ruleId" : "cpp/missing-null-test",
>       "ruleIndex" : 0,
>       "rule" : {
>         "id" : "cpp/missing-null-test",
>         "index" : 0
>       },
>       "message" : {
>         "text" : "Value may be null; it should be checked before dereferencing."
>       },
>       "locations" : [ {
>         "physicalLocation" : {
>           "artifactLocation" : {
>             "uri" : "MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c",
>             "uriBaseId" : "%SRCROOT%",
>             "index" : 0
>           },
>           "region" : {
>             "startLine" : 355,
>             "startColumn" : 48,
>             "endColumn" : 52
>           }
>         }
>       } ],
>       "partialFingerprints" : {
>         "primaryLocationLineHash" : "f374f6e6dfc92010:1",
>         "primaryLocationStartColumnFingerprint" : "43"
>       }
>     }, {
> 
> In the "emacs" output, it appears as:
> 
> --------
> ModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.c:355: cpp/missing-null-test Value may be null; it should be checked before dereferencing.
> --------
> 
> Note that the first three characters, "Mde" of "Mde" are lost.

I meant '"Mde" of "ModulePkg"'.

> 
> This issue (first three chars cut) affects all other pathnames in the emacs output too.




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111154): https://edk2.groups.io/g/devel/message/111154
Mute This Topic: https://groups.io/mt/102444916/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-11-13 13:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 15:43 [edk2-devel] CodeQL Analysis in edk2 Michael Kubacki
2023-11-13 13:39 ` Laszlo Ersek
2023-11-13 13:42   ` Laszlo Ersek [this message]
2023-11-15  0:35     ` Michael Kubacki
2023-11-15 12:00       ` Laszlo Ersek
2024-02-27 11:39 ` Gerd Hoffmann
2024-02-27 16:04   ` Michael Kubacki
2024-02-28  3:43     ` Laszlo Ersek
2024-02-28  3:55       ` Michael Kubacki
2024-02-28 11:29     ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5298947-bcff-eb96-d1b5-25b2491595b1@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox