Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix NdrCString not accepting strings in python3#85

Closed
hakril wants to merge 1 commit intomasterhakril/PythonForWindows:masterfrom
ndr_string_fixhakril/PythonForWindows:ndr_string_fixCopy head branch name to clipboard
Closed

Fix NdrCString not accepting strings in python3#85
hakril wants to merge 1 commit intomasterhakril/PythonForWindows:masterfrom
ndr_string_fixhakril/PythonForWindows:ndr_string_fixCopy head branch name to clipboard

Conversation

@hakril
Copy link
Owner

@hakril hakril commented Oct 15, 2025

Fix #84

Windows does seems to accept any bitstream that ends with \x00 for an FC_C_CSTRING.
But for now, NdrCString use ascii encoding to be sure that encoding keep the same number of bytes that the input string.

I could also accept bytes() (and would apply no modification) to allow the user to send whatever it wants.
Same for NdrWString

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 3.11-64

520 tests  ±0   460 ✅  - 4   2m 36s ⏱️ +7s
  1 suites ±0    56 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 2.7-32

520 tests  ±0   486 ✅  - 4   2m 50s ⏱️ -35s
  1 suites ±0    30 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

PyTest Results for 3.11-32

520 tests  ±0   442 ✅ ±0   2m 49s ⏱️ +13s
  1 suites ±0    78 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 19da4ad. ± Comparison against base commit c46f086.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 3.6-64

520 tests  ±0   508 ✅  - 4   2m 55s ⏱️ +16s
  1 suites ±0     8 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 3.11-32

520 tests  ±0   438 ✅  - 4   3m 31s ⏱️ +55s
  1 suites ±0    78 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 2.7-64

520 tests  ±0   508 ✅  - 4   2m 38s ⏱️ -11s
  1 suites ±0     8 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

PyTest Results for 3.6-32

520 tests  ±0   486 ✅  - 4   3m 11s ⏱️ -1s
  1 suites ±0    30 💤 ±0 
  1 files   ±0     4 ❌ +4 

For more details on these failures, see this check.

Results for commit 19da4ad. ± Comparison against base commit c46f086.

♻️ This comment has been updated with latest results.

@hakril
Copy link
Owner Author

hakril commented Oct 15, 2025

Superseed by #86

@hakril hakril closed this Oct 15, 2025
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.

NdrCString packing is broken

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.