Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 1855 sonarqube fix strlen & strcpy #1898

Merged
merged 24 commits into from
Aug 31, 2021
Merged

Commits on Aug 31, 2021

  1. #1855 Initialize AllocInc

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    d7ca364 View commit details
    Browse the repository at this point in the history
  2. 855 call snprintf instead of sprintf

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    0d322f2 View commit details
    Browse the repository at this point in the history
  3. Avoid the same for loops (SobarQube warns this)

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    c099f60 View commit details
    Browse the repository at this point in the history
  4. #1855 Checking the minimum rows (3) for formatting. Initialize left &…

    … right array
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    868ab7d View commit details
    Browse the repository at this point in the history
  5. #1855 Removed the unreachable return statement

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    30ce2e5 View commit details
    Browse the repository at this point in the history
  6. #1855 Avoide out of index for v_miss

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    eafb807 View commit details
    Browse the repository at this point in the history
  7. #1855 Keep buf_size for for-loop (avoid changing it in for loop). The…

    … buffer size for strncpy is decided by the targetbuffer size or the input length, not the existing data at the target buffer. The size of existing data at the target buffer is used to erase the previous data
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    ae6a6c2 View commit details
    Browse the repository at this point in the history
  8. #1855 Make sure the variuble c has enough data to avoid out of index …

    …error
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    e94048b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fb843da View commit details
    Browse the repository at this point in the history
  10. #1855 Make sure no negative offset for s array

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    56ec1bf View commit details
    Browse the repository at this point in the history
  11. #1855 Allocated line before calling getline'. Simplify the code to ch…

    …eck the first level only. Check pbl_level before provcessing
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    ee6e4c6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    955a8ca View commit details
    Browse the repository at this point in the history
  13. #1855 Added m_strlen, m_strcpy, m_strcpy2, and m_strncpy> Check if nu…

    …ll pointer
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    116c4e2 View commit details
    Browse the repository at this point in the history
  14. #1855 Calls m_strcpy intead of strcpy

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    489923f View commit details
    Browse the repository at this point in the history
  15. #1855 Calls m_strcpy2 intead of strcpy

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    8b0a8cf View commit details
    Browse the repository at this point in the history
  16. #1855 Calls m_strcpy intead of strcpy

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    f691aa5 View commit details
    Browse the repository at this point in the history
  17. Merge branch 'develop' of github.com:dtcenter/MET into feature_1855_s…

    …obarqube_fix
    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    3de9c3d View commit details
    Browse the repository at this point in the history
  18. #1855 Removed spaces at the empty line

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    7fb2ecd View commit details
    Browse the repository at this point in the history
  19. #1855 sonarqube: replaced strlen to m_strlen

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    d80307c View commit details
    Browse the repository at this point in the history
  20. #1855 sonarqube: replaced strcpy to m_strcpy

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    183f53f View commit details
    Browse the repository at this point in the history
  21. #1855 sonarqube: replaced strlen to m_strlen

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    7b1a64b View commit details
    Browse the repository at this point in the history
  22. #1855 sonarqube: replaced strlen to m_strlen

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    cf8ef98 View commit details
    Browse the repository at this point in the history
  23. #1855 sonarqube: replaced strlen to m_strlen

    Howard Soh committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    5acda75 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4b975a6 View commit details
    Browse the repository at this point in the history