Skip to content

build: fix stray debug string in LIEF defines#62683

Open
om-ghante wants to merge 1 commit intonodejs:mainfrom
om-ghante:fix/lief-remove-stray-debug-string
Open

build: fix stray debug string in LIEF defines#62683
om-ghante wants to merge 1 commit intonodejs:mainfrom
om-ghante:fix/lief-remove-stray-debug-string

Conversation

@om-ghante
Copy link
Copy Markdown

A stray debug string 'testtttt' in lief.gyp's defines list was missing
a trailing comma, causing it to be concatenated with the adjacent
MBEDTLS_CONFIG_FILE define via GYP's implicit string concatenation.

Current (broken): -DtestttttMBEDTLS_CONFIG_FILE="config/mbedtls/config.h"

Expected (fixed): -DMBEDTLS_CONFIG_FILE="config/mbedtls/config.h"

This means mbedtls was never receiving its intended config file path. Remove
the stray string so MBEDTLS_CONFIG_FILE is defined correctly.

Risk

Fixing this define may change mbedtls behavior if it was previously falling
back to a default config. Reviewers should verify that
config/mbedtls/config.h is the correct config path and that LIEF's mbedtls
usage works correctly with it.

Related: PR #62682 addresses the duplicate C++ standard flags in the same file.

Refs: #62129

A stray debug string 'testtttt' in lief.gyp's defines list was missing
a trailing comma, causing it to be concatenated with the adjacent
MBEDTLS_CONFIG_FILE define via implicit string concatenation. This
resulted in the compiler receiving:

  -DtestttttMBEDTLS_CONFIG_FILE="config/mbedtls/config.h"

instead of:

  -DMBEDTLS_CONFIG_FILE="config/mbedtls/config.h"

Remove the stray string so that MBEDTLS_CONFIG_FILE is defined
correctly.

Refs: nodejs#62129
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/security-wg
  • @nodejs/single-executable

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Apr 10, 2026
@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. request-ci Add this label to start a Jenkins CI on a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants