Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Modernize dataflow configurations#468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lcartey merged 2 commits intogithub:mainfromjketema:config-update
Dec 8, 2023

Conversation

@jketema
Copy link
Collaborator

@jketemajketema commentedDec 1, 2023
edited by lcartey
Loading

Description

Note that this targetsmain. Let me know if retargeting tonext makes more sense.

TheDataFlow::Configuration andTaintTracking::Configuration classes are going to be deprecated soon. Modernize the queries that use these by switching them over to the newDataFlow::ConfigSig.

This should not affect performance, but it's probably still good to test this. There are also some small changes to some of the paths in the test results. These look correct to me.

While doing this work, made the naming of the configurations more consistent. They now all end inConfig.

Change request type

  • Release or process automation (GitHub workflows, internal scripts)
  • Internal documentation
  • External documentation
  • Query files (.ql,.qll,.qls or unit tests)
  • External scripts (analysis report or other code shipped as part of a release)

Rules with added or modified queries

  • No rules added
  • Queries have been added for the following rules:
    • rule number here
  • Queries have been modified for the following rules:
    • rule number here

Release change checklist

A change note (development_handbook.md#change-notes) is required for any pull request which modifies:

  • The structure or layout of the release artifacts.
  • The evaluation performance (memory, execution time) of an existing query.
  • The results of an existing query in any circumstance.

If you are only adding new rule queries, a change note is not required.

Author: Is a change note required?

  • Yes
  • No

🚨🚨🚨
Reviewer: Confirm that format ofshared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.

  • Confirmed

Reviewer: Confirm that either a change note is not required or the change note is required and has been added.

  • Confirmed

Query development review checklist

For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:

Author

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

Reviewer

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

@jketemajketemaforce-pushed theconfig-update branch 2 times, most recently from67ab0aa toef99cccCompareDecember 1, 2023 21:59
@jketemajketema marked this pull request as ready for reviewDecember 2, 2023 08:04
…PointerType.qlCo-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
Copy link
Contributor

@aschackmullaschackmull left a comment

Choose a reason for hiding this comment

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

QL changes LGTM. I did not look at the expected-file changes.

jketema reacted with thumbs up emoji
@aschackmull
Copy link
Contributor

I expect the test differences to mostly be due togithub/codeql#13717

lcartey reacted with thumbs up emoji

@lcartey
Copy link
Contributor

/performance-test

@jsinglet
Copy link
Contributor

/test-performance

@github-actions
Copy link

🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute.

💡 If you do not hear back from me please check my status!I will report even if I fail!

@jsinglet
Copy link
Contributor

🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You canfind full graphs and stats in the PR that was created for this test in the release engineering repo.

Release                            : v2.22.0Platform                           : x86-linuxLanguage                           : cTotal_Serialized_Execution_Time_Ms : 2943450Mean_Predicate_Execution_Time_Ms   : 76.48900784782495Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 858.1506379688128Total_Serialized_Execution_Time_s  : 2943.45Mean_Query_Execution_Time_s        : 0.0764890078478249Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 186.0Number_of_Predicates               : 38482Release                            : v2.22.0Platform                           : x86-linuxLanguage                           : cppTotal_Serialized_Execution_Time_Ms : 3073055Mean_Predicate_Execution_Time_Ms   : 70.29106338205357Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 920.2592911681716Total_Serialized_Execution_Time_s  : 3073.055Mean_Query_Execution_Time_s        : 0.0702910633820535Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 177.0Number_of_Predicates               : 43719Release                            : v2.22.0Platform                           : x86-windowsLanguage                           : cTotal_Serialized_Execution_Time_Ms : 3357788Mean_Predicate_Execution_Time_Ms   : 86.68167385187289Median_Predicate_Execution_Time_Ms : 2.0Standard_Deviation_Ms              : 960.7195412073756Total_Serialized_Execution_Time_s  : 3357.788Mean_Query_Execution_Time_s        : 0.0866816738518728Median_Predicate_Execution_Time_s  : 0.002Percentile95_Ms                    : 210.1999999999971Number_of_Predicates               : 38737Release                            : v2.22.0Platform                           : x86-windowsLanguage                           : cppTotal_Serialized_Execution_Time_Ms : 3461869Mean_Predicate_Execution_Time_Ms   : 79.50095303708807Median_Predicate_Execution_Time_Ms : 2.0Standard_Deviation_Ms              : 1043.3963535634423Total_Serialized_Execution_Time_s  : 3461.869Mean_Query_Execution_Time_s        : 0.079500953037088Median_Predicate_Execution_Time_s  : 0.002Percentile95_Ms                    : 200.79999999999563Number_of_Predicates               : 43545Release                            : v2.23.0Platform                           : x86-windowsLanguage                           : cTotal_Serialized_Execution_Time_Ms : 3297678Mean_Predicate_Execution_Time_Ms   : 85.7809744296751Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 1342.7743390835178Total_Serialized_Execution_Time_s  : 3297.678Mean_Query_Execution_Time_s        : 0.0857809744296751Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 201.0Number_of_Predicates               : 38443Release                            : v2.23.0Platform                           : x86-linuxLanguage                           : cTotal_Serialized_Execution_Time_Ms : 2948398Mean_Predicate_Execution_Time_Ms   : 76.63949468430766Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 1297.9149849932878Total_Serialized_Execution_Time_s  : 2948.398Mean_Query_Execution_Time_s        : 0.0766394946843076Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 178.0Number_of_Predicates               : 38471Release                            : v2.23.0Platform                           : x86-linuxLanguage                           : cppTotal_Serialized_Execution_Time_Ms : 2957492Mean_Predicate_Execution_Time_Ms   : 70.03627924599792Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 935.7631280328526Total_Serialized_Execution_Time_s  : 2957.492Mean_Query_Execution_Time_s        : 0.0700362792459979Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 181.0Number_of_Predicates               : 42228Release                            : v2.23.0Platform                           : x86-windowsLanguage                           : cppTotal_Serialized_Execution_Time_Ms : 3330631Mean_Predicate_Execution_Time_Ms   : 78.85576627127874Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 1049.360013328543Total_Serialized_Execution_Time_s  : 3330.631Mean_Query_Execution_Time_s        : 0.0788557662712787Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 202.0Number_of_Predicates               : 42237Release                            : 468Platform                           : x86-linuxLanguage                           : cppTotal_Serialized_Execution_Time_Ms : 2757890Mean_Predicate_Execution_Time_Ms   : 65.36058774736343Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 819.7766805414473Total_Serialized_Execution_Time_s  : 2757.89Mean_Query_Execution_Time_s        : 0.0653605877473634Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 179.0Number_of_Predicates               : 42195Release                            : 468Platform                           : x86-linuxLanguage                           : cTotal_Serialized_Execution_Time_Ms : 2745961Mean_Predicate_Execution_Time_Ms   : 72.38404154365247Median_Predicate_Execution_Time_Ms : 1.0Standard_Deviation_Ms              : 1324.1322438014645Total_Serialized_Execution_Time_s  : 2745.961Mean_Query_Execution_Time_s        : 0.0723840415436524Median_Predicate_Execution_Time_s  : 0.001Percentile95_Ms                    : 180.0Number_of_Predicates               : 37936

🏁 Below are the slowest predicates for the last 2 releases vs this PR.

Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cppSuite             : autosar-defaultPredicate         : _DataFlowImpl1#bece54ca::hasFlowPath#3#fff_Deviations#ac004ef9::DeviationRecord::getACodeIdentifierC__#antijoin_rhsExecution_Time_Ms : 29082Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cSuite             : cert-defaultPredicate         : _#Element#496c7fc2::Element::getEnclosingElement#0#dispredPlus#bf_Access#8878f617::Access::getTarget__#antijoin_rhsExecution_Time_Ms : 196810Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cppSuite             : autosar-defaultPredicate         : #select#ffffffffExecution_Time_Ms : 45733Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cppSuite             : autosar-defaultPredicate         : m##DataFlowUtil#7572fbec::localFlowStep#2Plus#bfExecution_Time_Ms : 94993Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cppSuite             : autosar-defaultPredicate         : Dependency#b0c9183e::dependsOnTransitive#2#ffExecution_Time_Ms : 142036Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cppSuite             : cert-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 27078Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cSuite             : misra-defaultPredicate         : DoNotSubtractPointersAddressingDifferentArrays#e86f6fc0::problems#8#ffffffffExecution_Time_Ms : 47905Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cSuite             : cert-defaultPredicate         : DoNotSubtractPointersAddressingDifferentArrays#e86f6fc0::problems#8#ffffffffExecution_Time_Ms : 51173Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cSuite             : misra-defaultPredicate         : #select#cpe#123#fffExecution_Time_Ms : 74583Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cSuite             : cert-defaultPredicate         : _#Element#496c7fc2::Element::getEnclosingElement#0#dispredPlus#bf_Access#8878f617::Access::getTarget__#antijoin_rhsExecution_Time_Ms : 194322Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-windowsLanguage          : cSuite             : misra-defaultPredicate         : _@element#f_Declarations1#f6cea675::Declarations1Package::externalIdentifiersNotDistinctQuery#0#f_De__#antijoin_rhsExecution_Time_Ms : 42078Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 31194Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : #select#ffffffffExecution_Time_Ms : 42307Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : m##DataFlowUtil#7572fbec::localFlowStep#2Plus#bfExecution_Time_Ms : 91293Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : Dependency#b0c9183e::dependsOnTransitive#2#ffExecution_Time_Ms : 120498Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cSuite             : cert-defaultPredicate         : _@element#f_Declarations2#dda34f37::Declarations2Package::excessLengthNamesIdentifiersNotDistinctQue__#antijoin_rhsExecution_Time_Ms : 40946Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : DoNotSubtractPointersAddressingDifferentArrays#e86f6fc0::problems#8#ffffffffExecution_Time_Ms : 44362Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cSuite             : cert-defaultPredicate         : DoNotSubtractPointersAddressingDifferentArrays#e86f6fc0::problems#8#ffffffffExecution_Time_Ms : 48138Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : #select#cpe#123#fffExecution_Time_Ms : 69001Release           : v2.23.0Run               : 2023-10-12_15-21-31Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 29307Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : #select#cpe#123#fffExecution_Time_Ms : 67390Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : RepeatedInitializationOfAggregateObjectElement#76b22bdc::hasMultipleInitializerExprsForSameIndexInternal#4#ffff_3012#join_rhsExecution_Time_Ms : 37326Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : _@element#f_Declarations5#fba18028::Declarations5Package::identifiersDeclaredInTheSameScopeNotDistin__#antijoin_rhsExecution_Time_Ms : 33984Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cSuite             : misra-defaultPredicate         : _@element#f_Declarations1#f6cea675::Declarations1Package::externalIdentifiersNotDistinctQuery#0#f_De__#antijoin_rhsExecution_Time_Ms : 33602Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 26784Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : m##DataFlowUtil#7572fbec::localFlowStep#2Plus#bfExecution_Time_Ms : 80982Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cppSuite             : cert-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 27363Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : _@element#f_DataFlowUtil#7572fbec::TExprNode#ff_Deviations#ac004ef9::DeviationRecord::getACodeIdenti__#antijoin_rhsExecution_Time_Ms : 25725Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cppSuite             : autosar-defaultPredicate         : Dependency#b0c9183e::dependsOnTransitive#2#ffExecution_Time_Ms : 109478Release           : 468Run               : 2023-12-07_14-58-53Platform          : x86-linuxLanguage          : cSuite             : cert-defaultPredicate         : _#Element#496c7fc2::Element::getEnclosingElement#0#dispredPlus#bf_Access#8878f617::Access::getTarget__#antijoin_rhsExecution_Time_Ms : 219591

@lcartey
Copy link
Contributor

/test-matrix

@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@jsinglet
Copy link
Contributor

🤖 Beep Boop!qcc/cpp/AARCH64LE Matrix Testing for this PR won't happen because it is outside of license window!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!qcc/c/AARCH64LE Matrix Testing for this PR won't happen because it is outside of license window!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/X86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : A18-1-4QUERY                : PointerToAnElementOfAnArrayPassedToASmartPointerPACKAGE              : PointersTEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : A5-0-4QUERY                : PointerArithmeticUsedWithPointersToNonFinalClassesPACKAGE              : PointersTEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : A5-1-7QUERY                : LambdaPassedToDecltypePACKAGE              : LambdasTEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : A5-1-7QUERY                : LambdaPassedToTypeidPACKAGE              : LambdasTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : CTR56-CPPQUERY                : DoNotUsePointerArithmeticOnPolymorphicObjectsPACKAGE              : PointersTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : EXP51-CPPQUERY                : DoNotDeleteAnArrayThroughAPointerOfTheIncorrectTypePACKAGE              : FreedTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : MEM52-CPPQUERY                : DetectAndHandleMemoryAllocationErrorsPACKAGE              : AllocationsTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : MEM53-CPPQUERY                : MissingConstructorCallForManuallyManagedObjectPACKAGE              : AllocationsTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : MEM53-CPPQUERY                : MissingDestructorCallForManuallyManagedObjectPACKAGE              : AllocationsTEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : M5-0-17QUERY                : PointerSubtractionOnDifferentArraysPACKAGE              : PointersTEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : M5-0-18QUERY                : AppliedToObjectsOfPointerTypePACKAGE              : PointersTEST_DIFFERENCE      : SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : MEM56-CPPQUERY                : OwnedPointerValueStoredInUnrelatedSmartPointerCertPACKAGE              : SmartPointers2TEST_DIFFERENCE      : SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TrueRULE                 : A20-8-1QUERY                : OwnedPointerValueStoredInUnrelatedSmartPointerAsarPACKAGE              : SmartPointers1TEST_DIFFERENCE      :

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/X86_64 Matrix Testing for this PR has been completed. See below for the results!

PACKAGE              : PointersSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : PointerToAnElementOfAnArrayPassedToASmartPointerRULE                 : A18-1-4PACKAGE              : PointersSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : PointerArithmeticUsedWithPointersToNonFinalClassesRULE                 : A5-0-4PACKAGE              : LambdasSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : LambdaPassedToDecltypeRULE                 : A5-1-7PACKAGE              : LambdasSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : LambdaPassedToTypeidRULE                 : A5-1-7PACKAGE              : PointersSUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : DoNotUsePointerArithmeticOnPolymorphicObjectsRULE                 : CTR56-CPPPACKAGE              : FreedSUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : DoNotDeleteAnArrayThroughAPointerOfTheIncorrectTypeRULE                 : EXP51-CPPPACKAGE              : AllocationsSUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : DetectAndHandleMemoryAllocationErrorsRULE                 : MEM52-CPPPACKAGE              : AllocationsSUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : MissingConstructorCallForManuallyManagedObjectRULE                 : MEM53-CPPPACKAGE              : AllocationsSUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : MissingDestructorCallForManuallyManagedObjectRULE                 : MEM53-CPPPACKAGE              : PointersSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : PointerSubtractionOnDifferentArraysRULE                 : M5-0-17PACKAGE              : PointersSUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : AppliedToObjectsOfPointerTypeRULE                 : M5-0-18PACKAGE              : SmartPointers2SUITE                : CERT-C++COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : OwnedPointerValueStoredInUnrelatedSmartPointerCertRULE                 : MEM56-CPPPACKAGE              : SmartPointers1SUITE                : AUTOSARCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueTEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : OwnedPointerValueStoredInUnrelatedSmartPointerAsarRULE                 : A20-8-1

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotUsePointerArithmeticOnNonArrayObjectPointersSUITE                : CERT-CTEST_PASS            : TrueRULE                 : ARR37-CTEST_DIFFERENCE      : PACKAGE              : InvalidMemory2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotAddOrSubtractAScaledIntegerToAPointerSUITE                : CERT-CTEST_PASS            : TrueRULE                 : ARR39-CTEST_DIFFERENCE      : PACKAGE              : Pointers2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : CleanUpThreadSpecificStorageSUITE                : CERT-CTEST_PASS            : TrueRULE                 : CON30-CTEST_DIFFERENCE      : PACKAGE              : Concurrency4COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotCastPointerToMoreStrictlyAlignedPointerTypeSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP36-CTEST_DIFFERENCE      : PACKAGE              : Pointers3COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotCallFunctionPointerWithIncompatibleTypeSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP37-CTEST_DIFFERENCE      : PACKAGE              : ExpressionsCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotCallFunctionsWithIncompatibleArgumentsSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP37-CTEST_DIFFERENCE      : PACKAGE              : ExpressionsCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : CallPOSIXOpenWithCorrectArgumentCountSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP37-CTEST_DIFFERENCE      : PACKAGE              : ExpressionsCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotAccessVariableViaPointerOfIncompatibleTypeSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP39-CTEST_DIFFERENCE      : PACKAGE              : Pointers3COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotModifyConstantObjectsSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP40-CTEST_DIFFERENCE      : PACKAGE              : Contracts6COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotPassAliasedPointerToRestrictQualifiedParamSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP43-CTEST_DIFFERENCE      : PACKAGE              : Pointers3COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : RestrictPointerReferencesOverlappingObjectSUITE                : CERT-CTEST_PASS            : TrueRULE                 : EXP43-CTEST_DIFFERENCE      : PACKAGE              : Pointers3COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : OnlyUseValuesForFsetposThatAreReturnedFromFgetposSUITE                : CERT-CTEST_PASS            : TrueRULE                 : FIO44-CTEST_DIFFERENCE      : PACKAGE              : IO2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotModifyAlignmentOfMemoryWithReallocSUITE                : CERT-CTEST_PASS            : TrueRULE                 : MEM36-CTEST_DIFFERENCE      : PACKAGE              : Memory2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotPassInvalidDataToTheAsctimeFunctionSUITE                : CERT-CTEST_PASS            : TrueRULE                 : MSC33-CTEST_DIFFERENCE      : PACKAGE              : Contracts7COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotCallVaArgOnAVaListThatHasAnIndeterminateValueSUITE                : CERT-CTEST_PASS            : TrueRULE                 : MSC39-CTEST_DIFFERENCE      : PACKAGE              : Contracts7COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotAttemptToModifyStringLiteralsSUITE                : CERT-CTEST_PASS            : TrueRULE                 : STR30-CTEST_DIFFERENCE      : PACKAGE              : Strings1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : SubtractionBetweenPointersMustAddressSameArraySUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-18-2TEST_DIFFERENCE      : PACKAGE              : Pointers1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotSubtractPointersThatDoNotReferToTheSameArraySUITE                : CERT-CTEST_PASS            : TrueRULE                 : ARR36-CTEST_DIFFERENCE      : PACKAGE              : Memory2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : DoNotRelatePointersThatDoNotReferToTheSameArraySUITE                : CERT-CTEST_PASS            : TrueRULE                 : ARR36-CTEST_DIFFERENCE      : PACKAGE              : Memory2COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : RelationalOperatorComparesPointerToDifferentArraySUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-18-3TEST_DIFFERENCE      : PACKAGE              : Pointers1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : ArrayFunctionArgumentNumberOfElementsSUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-17-5TEST_DIFFERENCE      : PACKAGE              : Contracts6COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : MemcmpUsedToCompareNullTerminatedStringsSUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-21-14TEST_DIFFERENCE      : PACKAGE              : EssentialTypesCOMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : AttemptToWriteToAReadOnlyStreamSUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-22-4TEST_DIFFERENCE      : PACKAGE              : IO3COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueQUERY                : EofShallBeComparedWithUnmodifiedReturnValuesSUITE                : MISRA-C-2012TEST_PASS            : TrueRULE                 : RULE-22-7TEST_DIFFERENCE      : PACKAGE              : IO3

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/X86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : CERT-CPACKAGE              : InvalidMemory2RULE                 : ARR37-CTEST_DIFFERENCE      : QUERY                : DoNotUsePointerArithmeticOnNonArrayObjectPointersCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Pointers2RULE                 : ARR39-CTEST_DIFFERENCE      : QUERY                : DoNotAddOrSubtractAScaledIntegerToAPointerCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Concurrency4RULE                 : CON30-CTEST_DIFFERENCE      : QUERY                : CleanUpThreadSpecificStorageCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Pointers3RULE                 : EXP36-CTEST_DIFFERENCE      : QUERY                : DoNotCastPointerToMoreStrictlyAlignedPointerTypeCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : ExpressionsRULE                 : EXP37-CTEST_DIFFERENCE      : QUERY                : DoNotCallFunctionPointerWithIncompatibleTypeCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : ExpressionsRULE                 : EXP37-CTEST_DIFFERENCE      : QUERY                : DoNotCallFunctionsWithIncompatibleArgumentsCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : ExpressionsRULE                 : EXP37-CTEST_DIFFERENCE      : QUERY                : CallPOSIXOpenWithCorrectArgumentCountCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Pointers3RULE                 : EXP39-CTEST_DIFFERENCE      : QUERY                : DoNotAccessVariableViaPointerOfIncompatibleTypeCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Contracts6RULE                 : EXP40-CTEST_DIFFERENCE      : QUERY                : DoNotModifyConstantObjectsCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Pointers3RULE                 : EXP43-CTEST_DIFFERENCE      : QUERY                : RestrictPointerReferencesOverlappingObjectCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Pointers3RULE                 : EXP43-CTEST_DIFFERENCE      : QUERY                : DoNotPassAliasedPointerToRestrictQualifiedParamCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : IO2RULE                 : FIO44-CTEST_DIFFERENCE      : QUERY                : OnlyUseValuesForFsetposThatAreReturnedFromFgetposCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Memory2RULE                 : MEM36-CTEST_DIFFERENCE      : QUERY                : DoNotModifyAlignmentOfMemoryWithReallocCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Contracts7RULE                 : MSC33-CTEST_DIFFERENCE      : QUERY                : DoNotPassInvalidDataToTheAsctimeFunctionCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Contracts7RULE                 : MSC39-CTEST_DIFFERENCE      : QUERY                : DoNotCallVaArgOnAVaListThatHasAnIndeterminateValueCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Strings1RULE                 : STR30-CTEST_DIFFERENCE      : QUERY                : DoNotAttemptToModifyStringLiteralsCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : Pointers1RULE                 : RULE-18-2TEST_DIFFERENCE      : QUERY                : SubtractionBetweenPointersMustAddressSameArrayCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Memory2RULE                 : ARR36-CTEST_DIFFERENCE      : QUERY                : DoNotSubtractPointersThatDoNotReferToTheSameArrayCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : CERT-CPACKAGE              : Memory2RULE                 : ARR36-CTEST_DIFFERENCE      : QUERY                : DoNotRelatePointersThatDoNotReferToTheSameArrayCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : Pointers1RULE                 : RULE-18-3TEST_DIFFERENCE      : QUERY                : RelationalOperatorComparesPointerToDifferentArrayCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : Contracts6RULE                 : RULE-17-5TEST_DIFFERENCE      : QUERY                : ArrayFunctionArgumentNumberOfElementsCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : EssentialTypesRULE                 : RULE-21-14TEST_DIFFERENCE      : QUERY                : MemcmpUsedToCompareNullTerminatedStringsCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : IO3RULE                 : RULE-22-4TEST_DIFFERENCE      : QUERY                : AttemptToWriteToAReadOnlyStreamCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012PACKAGE              : IO3RULE                 : RULE-22-7TEST_DIFFERENCE      : QUERY                : EofShallBeComparedWithUnmodifiedReturnValuesCOMPILE_PASS         : TrueTEST_PASS            : TrueCOMPILE_ERROR_OUTPUT :

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

Copy link
Contributor

@lcarteylcartey left a comment

Choose a reason for hiding this comment

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

Thanks for updating this!

I believe the main user-facing impact for this change is the addition of intermediate nodes in path results where those nodes were specified as additional flow edges (seegithub/codeql#13717). Reviewing the test changes, I think this should be an improvement overall.

No significant performance changes identified, and no observed compiler compatibility issues in the changed queries. We may still see some compiler compatibility issues based on changes to shared libraries, but these can be addressed as part of the wider group of compiler compatibility issues.

@lcarteylcartey added this pull request to themerge queueDec 8, 2023
Merged via the queue intogithub:main with commit1658a17Dec 8, 2023
@jketemajketema deleted the config-update branchDecember 8, 2023 11:13
@jketemajketema mentioned this pull requestDec 11, 2023
30 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@lcarteylcarteylcartey approved these changes

@aschackmullaschackmullaschackmull approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@jketema@aschackmull@lcartey@jsinglet

[8]ページ先頭

©2009-2025 Movatter.jp