pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/flutter/flutter/pull/182965

ttps://github.githubassets.com/assets/actions-109fb3a41bacb1c2.css" /> licenses_cpp: pre-land changes for perfetto update by gaaclarke · Pull Request #182965 · flutter/flutter · GitHub
Skip to content

licenses_cpp: pre-land changes for perfetto update#182965

Open
gaaclarke wants to merge 3 commits intoflutter:masterfrom
gaaclarke:perfetto-touch
Open

licenses_cpp: pre-land changes for perfetto update#182965
gaaclarke wants to merge 3 commits intoflutter:masterfrom
gaaclarke:perfetto-touch

Conversation

@gaaclarke
Copy link
Member

This lands necessary changes for the perfetto update that is upcoming from dart.

See also: #182883

fyi @mraleph

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@gaaclarke gaaclarke requested a review from jtmcdole February 26, 2026 21:34
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several regular expression patterns used for license detection to improve their flexibility and correctness. A key change is a bug fix in catalog.cc to correctly handle optional capturing groups that don't match, preventing a potential crash. A corresponding unit test has been added to validate this fix. Additionally, one unused license pattern file has been removed.

@github-actions github-actions bot added the engine flutter/engine related. See also e: labels. label Feb 26, 2026
const char* position = full_match.data();
for (int i = 1; i <= num_groups; ++i) {
std::string_view submatch = submatches[i];
if (submatch.data() == nullptr) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary for this fix, it's just something i found on accidentally when using a capturing group instead of a non-capturing group.


END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These appendix on how to apply the license are truncated now.

Comment on lines -1040 to -1052
Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird, somebody edited the appendix on how to apply the license. This is being truncated now.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 26, 2026
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 27, 2026
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 27, 2026

autosubmit label was removed for flutter/flutter/182965, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy