Skip to content

Conversation

@Marcool04
Copy link

what

In standalone/config.c:

  • Make rootpath and incpath into const char (rather than just char)
  • replace rootpath where it was being written to, by another char, configfilepath

why

Avoids apr_filepath_root function to which these are passed throwing an "incompatible pointer type" warning/error (up to gcc13 it is a warning, from gcc14 an error).

references

Fixes #3173

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@marcstern marcstern merged commit d7f2be6 into owasp-modsecurity:v2/master Oct 4, 2024
40 of 41 checks passed
@Marcool04 Marcool04 deleted the v2/master branch October 4, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants