Commit Graph

1505 Commits

Author SHA1 Message Date
Benoît Cortier 91ea46bd90 fix(egfx)!: separate wire-level RawCapabilitySet from typed CapabilitySet (#1305) 2026-05-25 14:38:03 +00:00
clintcan a4bc475360 feat(cliprdr): add CliprdrBackend::on_format_list_response(ok) hook (#1300) 2026-05-25 13:59:18 +00:00
Greg Lamberson 3dae1fbacc test(fuzz): add egfx PDU decoders to pdu_decode oracle + fix two surfaced bugs (#1271) 2026-05-25 22:54:24 +09:00
Greg Lamberson 424590ac76 fix(server): drop raw user_data dump from McsMessage::SendDataRequest debug log (#1295) 2026-05-25 22:51:49 +09:00
clintcan 5375bbb9dd feat(cliprdr): advertise Preferred DropEffect alongside FileGroupDescriptorW (#1301)
`initiate_file_copy` now advertises **both** `FileGroupDescriptorW` and
`Preferred DropEffect` (`CFSTR_PREFERREDDROPEFFECT`) in the FormatList,
and `handle_format_data_request` short-circuits a request for the latter
with `DROPEFFECT_COPY` (0x00000001 LE).
2026-05-25 22:50:32 +09:00
clintcan 7e0bfd3c55 feat(cliprdr): always set FD_PROGRESSUI in FileDescriptor::encode (#1299) 2026-05-25 22:38:01 +09:00
Greg Lamberson 905a148604 fix(rdpsnd-native): allocate Opus PCM buffer as Vec<i16> to avoid alignment panic (#1256) 2026-05-25 22:35:40 +09:00
Greg Lamberson 6d43d2692d feat(graphics,egfx): add progressive RFX server encode and mixed-codec frames (#1198) 2026-05-25 22:20:40 +09:00
Greg Lamberson 610cfd0742 test(fuzz): add pdu_round_trip oracle and target (#1291) 2026-05-25 22:12:14 +09:00
uchouT 894007448a refactor(rdpeusb): centralize SHARED_MSG_HEADER validation (#1294) 2026-05-25 22:10:05 +09:00
Eitvilas 0bbffcd0ec fix(web): include Meta keys in WebKit scancode dispatch (#1304) 2026-05-25 11:27:04 +00:00
Greg Lamberson 491b91fd2f fix(pdu)!: remove ironrdp-egfx duplicates from ironrdp-pdu (#1303) 2026-05-25 20:13:47 +09:00
clintcan 67f3c63573 fix(egfx): tolerate unknown capability versions instead of failing decode (#1298) 2026-05-25 15:26:09 +09:00
Krista House c56ea16d05 fix(remote-desktop): resolve Firefox stuck right-click via mouse state reconciliation (#1297)
### Summary

Fixed a Firefox-specific issue where right-clicking inside the remote
desktop canvas could leave the server-side right mouse button state
stuck as pressed.

### Changes
**Input cleanup**
- `onmouseleave` now releases all active inputs through `mouseOut()`
- Added `focusLost()` handling for:
  - window `blur`
  - document `visibilitychange`
- This ensures inputs are released when the user leaves the canvas,
switches tabs, or the browser loses focus

**Mouse state reconciliation**
Updated `mouseIn()` to compare e`vent.buttons` against tracked
server-side button state.
If the browser no longer reports a button as held, the service releases
it server-side.

This covers:
1. left button
2. right button
3. middle button

Releases are batched into a single `applyInputs` call.

**Listener cleanup**
- Hoisted `captureKeys` so it can be properly removed
- `onDestroy` now removes:
  - keydown
  - keyup
  - blur
  - visibilitychange

**Tests**
Added `mouseInput.test.ts` covering:
- `mouseOut`
- `focusLost`
- `mouseIn` reconciliation
- missing-session guards
- release batching
- no-op behavior when no release is required
2026-05-22 16:21:37 -04:00
clintcan 6e8479763f fix(server): keep newest queued waves on per-batch overflow (#1276) 2026-05-21 15:09:52 +00:00
Copilot 0dd7c94ba2 fix(xcrush): off-by-one in forward match loop causes panic during compression (#1293)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
2026-05-21 18:04:46 +03:00
Greg Lamberson 109d9983bb refactor(core): replace wildcard re-exports with explicit lists (#1270) 2026-05-22 00:03:47 +09:00
Greg Lamberson a142799d1d feat(graphics,egfx): add progressive RFX decode and EGFX integration (#1197) 2026-05-21 23:43:47 +09:00
Benoît Cortier 5663ce206a ci(fuzz): discover fuzz targets dynamically (#1290)
Mirror the `check features` pattern: expose `cargo xtask fuzz list`
(with `--format github-matrix`) that enumerates fuzz targets by scanning
`fuzz/fuzz_targets/*.rs`, and have the fuzz workflow build its matrix
from that output. New targets dropped into the directory are picked up
by CI automatically, with no workflow edits required.
2026-05-20 15:06:55 +00:00
Greg Lamberson a8a813a22d feat(fuzz): add bulk decompression fuzz targets (MPPC, NCRUSH, XCRUSH) (#1285) 2026-05-20 22:35:54 +09:00
Greg Lamberson 2f9238810d refactor(egfx)!: mark consumer-facing types as #[non_exhaustive] for pre-publish API stability (#1284) 2026-05-20 16:14:51 +09:00
Benoît Cortier eedd61f3da chore(deps): normalize version requirements to minimal form (#1288)
Drop unnecessary patch-level pins from dependency version requirements.
2026-05-19 14:15:04 +00:00
Benoît Cortier b8f732b2bf chore(skills): add release-prep skill for release-plz PRs (#1287)
Adds .github/skills/release-prep/SKILL.md, a project-local skill that
guides the GitHub Copilot agent through the human-in-the-loop pass on
release-plz "chore(release): prepare for publishing" PRs:

- public-dependency propagation rule (public marker semantics, with the
asymmetry that patch bumps don't propagate because Cargo.toml
requirements are major.minor only)
- per-crate changelog rewrite policy for cross-crate commits
- deduplication of commits that collapse into a single net change within
the release window (reverts, iterations on unreleased features,
mechanical follow-ups)
- scope-of-edits guard (CHANGELOG.md, Cargo.toml and Cargo.lock only on
the PR branch; source/README/MSRV changes go to main and regenerate)
- procedure anchored on `git diff origin/main` against the checked-out
branch, with the correct lockfile flow (regenerate without --locked,
commit, then `cargo xtask check locks -v`)
2026-05-19 14:08:58 +00:00
Greg Lamberson ac7ad50a50 fix(error,session)!: remove Error::into_other_kind (#1278) 2026-05-19 17:06:02 +09:00
Greg Lamberson d18c51171b ci: add check features matrix gate with dynamic CI fan-out (#1283) 2026-05-19 17:04:33 +09:00
Greg Lamberson 18a430a51a fix(bulk): gate alloc-dependent modules behind the alloc feature (#1279) 2026-05-18 18:30:25 +09:00
Greg Lamberson fa7808412c fix(str): import alloc::borrow::ToOwned in no_std + alloc builds (#1280) 2026-05-18 18:15:30 +09:00
Plaban Roy cb6247292f feat(rdpeusb): initial PDU module (#1165) 2026-05-18 17:02:50 +09:00
Greg Lamberson 0282d1821c feat(egfx)!: switch WireToSurface1Pdu rectangles to exclusive bounds (#1238)
Updates EGFX WireToSurface1 destination rectangles to use exclusive right/bottom bounds so Rust geometry semantics match MS-RDPEGFX wire semantics.
2026-05-15 12:31:40 +09:00
Anton Isaiev 9cb5439b4a fix(connector): handle ServerDeactivateAll during CapabilitiesExchange (#1254)
Some RDP servers (notably GNOME Remote Desktop / grd) send a
ServerDeactivateAll PDU before ServerDemandActive during the initial
Capabilities Exchange phase. This is valid per MS-RDPBCGR §1.3.1.3
(Deactivation-Reactivation Sequence).

Previously this caused a hard error:
"unexpected Share Control Pdu (expected ServerDemandActive)"

Now the connector skips the DeactivateAll and waits for the next PDU.
2026-05-14 16:26:39 +00:00
dependabot[bot] 72901cc78b build(deps): bump the patch group across 1 directory with 2 updates (#1265) 2026-05-14 15:52:57 +00:00
Greg Lamberson 2f77687475 feat(egfx)!: switch SolidFill/SurfaceToSurface/SurfaceToCache rectangles to exclusive bounds (#1246) 2026-05-15 00:47:44 +09:00
Greg Lamberson d02d24aad4 refactor(async,blocking)!: make Framed::read_exact crate-private (#1247) 2026-05-15 00:41:23 +09:00
dependabot[bot] a00f51d957 build(deps): bump sspi from 0.19.2 to 0.20.0 (#1250) 2026-05-15 00:20:45 +09:00
Benoît Cortier 4c5301850b fix(connector)!: remove arbitrary feature (#1273)
The connector types are unlikely to benefit from random value generation
for fuzzing purposes; a more targeted approach would be preferable if
the connector is fuzzed in the future. We’ll reevaluate later.
2026-05-14 09:22:51 -04:00
Greg Lamberson af11df1fd0 feat(pdu): add arbitrary feature for structure-aware fuzzing (#1272) 2026-05-14 21:46:15 +09:00
Benoît Cortier 2e2699d2dc fix(error): box diagnostic metadata to shrink Error<Kind> size (#1269)
Move context, location, and source into a heap-allocated ErrorMeta
struct so that Error<Kind> holds only kind on the stack. This eliminates
the size cascade that caused ConnectorError to exceed clippy's 128-byte
threshold (it was raised to 152 to accommodate the Location field).

Error construction is already #[cold], so the single Box allocation per
error is acceptable.
2026-05-14 13:57:23 +03:00
Benoît Cortier df0bf9c69d fix(pdu)!: remove unused legacy error types (#1268)
Remove GccError, McsError, RdpError, SecurityDataError,
ClusterDataError, NetworkDataError, CoreDataError, InputEventError,
ClientInfoError, CapabilitySetsError, SessionError, and ChannelError.
All encode/decode functions had already been migrated to use
DecodeResult/EncodeResult from ironrdp-core, leaving these error types
as dead code.
2026-05-13 07:10:05 -04:00
Greg Lamberson 14c55027c8 refactor(pdu): hand-roll Display/Error impls and remove thiserror dependency (#1264) 2026-05-13 06:52:22 +00:00
Greg Lamberson 68b86f2b06 feat(error): add shared bail! and ensure! macros (#1263) 2026-05-12 12:10:48 +00:00
Greg Lamberson 2e2b5edfd7 feat(error): capture core::panic::Location automatically in Error<Kind> (#1262)
Adds automatic caller location capture to `ironrdp-error::Error<Kind>` using `#[track_caller]` + `core::panic::Location::caller()`, and surfaces that location in the `Display` output while keeping `Debug` stable for cross-platform snapshots.
2026-05-12 18:07:31 +09:00
dependabot[bot] ba8b8b30f1 build(deps): bump the patch group across 1 directory with 2 updates (#1248) 2026-05-08 21:10:25 +09:00
Matthew Johnson 14b1cef9cb feat(rdpdr): add Web RDPDR virtual printer support (#1230)
Adds RDPDR virtual printer redirection for web sessions, enabling the web client to announce a redirected printer, receive server print jobs over RDPDR, and deliver completed PostScript jobs to a browser callback.
2026-05-04 06:51:59 +00:00
Mariusz Białończyk 2d4980463e feat(client): add --prevent-session-lock CLI option (#1207)
Adds a new CLI flag to prevent remote session locking by injecting fake
mouse movement events when the connection is idle, similarly to
FreeRDP's equivalent option.
2026-04-30 18:13:46 +09:00
GlassOnTin 78effb3f91 fix(connector): surface actual PDU type when an unexpected Share Control PDU arrives (#1236) 2026-04-29 11:34:43 +00:00
rhammonds-teleport 1a09dbaca9 feat(rdpdr): Notify RdpdrBackend of 'User Logged On' Messages (#1211) 2026-04-29 20:25:37 +09:00
dependabot[bot] f6fa5779a1 build(deps): bump tokio-tungstenite from 0.28.0 to 0.29.0 (#1234) 2026-04-28 16:23:44 +09:00
dependabot[bot] 4282fb22f0 build(deps): bump the patch group across 1 directory with 3 updates (#1233) 2026-04-28 16:23:12 +09:00
dependabot[bot] a5dab356e5 build(deps): bump rayon from 1.11.0 to 1.12.0 (#1235) 2026-04-28 15:59:29 +09:00
Benoît Cortier 2fa7c648cb fix(connector): advertise all colour depths per FreeRDP pattern (#1231)
Replace the per-depth supportedColorDepths bitmask with an unconditional
BPP32 | BPP24 | BPP16 | BPP15, following FreeRDP's approach of treating
the field as a capability set rather than a preferred-depth indicator
(libfreerdp/core/settings.c).

The preferred depth is expressed via the two dedicated fields:
- highColorDepth: now derived from the configured depth (15 →
Rgb555Bpp16 / 0x0F, 16 → Rgb565Bpp16 / 0x10, else Bpp24 / 0x18),
matching FreeRDP's ColorDepthToHighColor()
- WANT_32_BPP_SESSION earlyCapabilityFlag: unchanged, set only for 32bpp

Previously, a client configured for 24bpp advertised BPP24 only. Modern
Windows hosts (Server 2012+) dropped 24bpp RDP support and reset the
connection instead of negotiating down, leaving no usable depth. With
all four bits always advertised the server can freely negotiate to the
highest depth it supports.
2026-04-28 00:10:07 +09:00