Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Veracode when using QT?
Forum Updated to NodeBB v4.3 + New Features

Veracode when using QT?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 397 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shokarta
    wrote on last edited by
    #1

    Hey guys,

    the veracode.com to check all platforms and languages, which is worldwide used to scan the app for any security vulnerabilities, for windows c++ applications it has unfortunatelly quite dificult requirements:
    https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/buYskUiDRTdtZy6kSkof2Q

    do you thing these requirements can be met from QT creator?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shokarta
      wrote on last edited by
      #3

      At the end i found the solution is very simple.

      Basically for every supplied exe or dll file it requires pdb file.
      Unfortunatelly urrect 5.13.x version doesnt have it unless i dont want to compile all qt with that.
      But if I use mainstenancetool.exe then for version 5.12.x it is available under Qt Debug Information Files, then all pdb files are in dir 5.12.x/msvc2017/bin.
      as per pdb file for my exe file, i just added into .pro file:

      QMAKE_CXXFLAGS += -Zi
      QMAKE_CXXFLAGS += /GS-
      QMAKE_LFLAGS += /INCREMENTAL:NO
      QMAKE_LFLAGS += /DEBUG:FULL
      

      and when recompiled, the pdb file for the app was created.

      Also, important info regarding veracode requirements was that it needs msvc compiler instead of MinGW, so had to use it too (but also when I initialy tried with MinGW it also somehow worked too, mabye someine in the future will have luck with this compiler too).

      Also for the future googlers, the veracode is works with all exe+dll files what you supply, if you decide not to supply any importand dll, then it scans only what you supply regardles the dll is realy needed. Because I was not able to find on internet my custom mysql connector dll (libmysql.dll and its pdb file)

      Hope this helps for whomever it will google this issue in the future.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        From the looks of it, it's nothing Qt Creator is responsible for.

        You would likely create a custom mkspec to ensure that you have the flags needed as well as not the ones that are forbidden.

        This will likely require a custom build of Qt.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • S Offline
          S Offline
          shokarta
          wrote on last edited by
          #3

          At the end i found the solution is very simple.

          Basically for every supplied exe or dll file it requires pdb file.
          Unfortunatelly urrect 5.13.x version doesnt have it unless i dont want to compile all qt with that.
          But if I use mainstenancetool.exe then for version 5.12.x it is available under Qt Debug Information Files, then all pdb files are in dir 5.12.x/msvc2017/bin.
          as per pdb file for my exe file, i just added into .pro file:

          QMAKE_CXXFLAGS += -Zi
          QMAKE_CXXFLAGS += /GS-
          QMAKE_LFLAGS += /INCREMENTAL:NO
          QMAKE_LFLAGS += /DEBUG:FULL
          

          and when recompiled, the pdb file for the app was created.

          Also, important info regarding veracode requirements was that it needs msvc compiler instead of MinGW, so had to use it too (but also when I initialy tried with MinGW it also somehow worked too, mabye someine in the future will have luck with this compiler too).

          Also for the future googlers, the veracode is works with all exe+dll files what you supply, if you decide not to supply any importand dll, then it scans only what you supply regardles the dll is realy needed. Because I was not able to find on internet my custom mysql connector dll (libmysql.dll and its pdb file)

          Hope this helps for whomever it will google this issue in the future.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved