This is an archive of the discontinued LLVM Phabricator instance.

Initialize terminfo.bzl linkopts to None
ClosedPublic

Authored by jonmeow on Jan 26 2022, 9:50 AM.

Details

Summary

The underlying issue here is that line 125 checks if linkopts was assigned (by line 120) but it's not initialized, so that becomes a crash. This was noticed by someone trying to use Docker, so no terminfo library installed.

Diff Detail

Event Timeline

jonmeow requested review of this revision.Jan 26 2022, 9:50 AM
jonmeow created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 9:50 AM

The underlying issue here is that line 125 checks if linkopts was assigned (by line 120) but it's not initialized, so that becomes a crash. This was noticed by someone trying to use Docker, so no terminfo library installed.

Sorry if I'm doing something wrong here, I'm new to phabricator.

GMNGeoffrey accepted this revision.Jan 26 2022, 9:55 AM

LGTM. Thanks for the fix. Can you add the explanation to the description? Also, do you need me to land this for you? If so, do you want it committed with the author information from this commit "jonmeow <46229924+jonmeow@users.noreply.github.com>"?

This revision is now accepted and ready to land.Jan 26 2022, 9:55 AM
jonmeow edited the summary of this revision. (Show Details)Jan 26 2022, 9:56 AM
jonmeow updated this revision to Diff 403328.Jan 26 2022, 10:25 AM

Trying to modify the commit.

I've moved my explanation into the description, and I think the commit reflects it now. I don't have LLVM commit access, so I think I do need you to land it. I'm fine with that attribution (if you want a working email, "jonmeow <jperkins@google.com>" would be fine too).

This revision was automatically updated to reflect the committed changes.