-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
build: fix C string encoding for PRODUCT_DIR_ABS
#56111
Conversation
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56111 +/- ##
=======================================
Coverage 88.53% 88.54%
=======================================
Files 657 657
Lines 189858 189858
Branches 36450 36447 -3
=======================================
+ Hits 168089 168103 +14
+ Misses 14973 14972 -1
+ Partials 6796 6783 -13 |
e0c8ce0
to
c2bec3f
Compare
@addaleax The build is broken, can you take a look ? also long time no see :) |
Yeah, thanks for pointing this out – nodejs/gyp-next#274 should fix this again (sorry, I applied the suggestion provided there without checking that it works when integrated into Node.js again) |
Since the `PRODUCT_DIR_ABS` gyp variable is meant to be used in a C string in the OpenSSL config, provide a version of it that actually provides it in a way that is always usable as a C string. Otherwise, unescaped characters in the path can mess with the string definitions; for example, building in paths on Windows whose directories start with valid or invalid escape sequences (e.g.: `C:\...\x61foobar\...` or `C:\...\456789\...`) can result in failing builds or incorrect paths provided to OpenSSL.
c2bec3f
to
486ff15
Compare
@gengjiawen Updated! 🙂 |
Landed in e5524ea...203398d |
PR-URL: #56111 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]>
Since the `PRODUCT_DIR_ABS` gyp variable is meant to be used in a C string in the OpenSSL config, provide a version of it that actually provides it in a way that is always usable as a C string. Otherwise, unescaped characters in the path can mess with the string definitions; for example, building in paths on Windows whose directories start with valid or invalid escape sequences (e.g.: `C:\...\x61foobar\...` or `C:\...\456789\...`) can result in failing builds or incorrect paths provided to OpenSSL. PR-URL: #56111 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]>
Since the
PRODUCT_DIR_ABS
gyp variable is meant to be used in a C string in the OpenSSL config, provide a version of it that actually provides it in a way that is always usable as a C string. Otherwise, unescaped characters in the path can mess with the string definitions; for example, building in paths on Windows whose directories start with valid or invalid escape sequences (e.g.:C:\...\x61foobar\...
orC:\...\456789\...
) can result in failing builds or incorrect paths provided to OpenSSL.Needs: nodejs/gyp-next#271