Skip to content

Comments

FIX: FsEventWatcher crashes when dealing with empty path#718

Merged
JohnTitor merged 2 commits intonotify-rs:mainfrom
riberk:fix_fs_events_deref_null_ptr_645
Oct 20, 2025
Merged

FIX: FsEventWatcher crashes when dealing with empty path#718
JohnTitor merged 2 commits intonotify-rs:mainfrom
riberk:fix_fs_events_deref_null_ptr_645

Conversation

@riberk
Copy link
Contributor

@riberk riberk commented Oct 19, 2025

This PR fixes the bug, described in #645

closes: #645

@JohnTitor JohnTitor force-pushed the fix_fs_events_deref_null_ptr_645 branch from afe2e1a to ecf89ee Compare October 20, 2025 10:24
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@JohnTitor JohnTitor merged commit 539bc95 into notify-rs:main Oct 20, 2025
17 checks passed
sapphi-red pushed a commit to rolldown/notify that referenced this pull request Nov 13, 2025
Boshen added a commit to rolldown/notify that referenced this pull request Nov 16, 2025
## 🤖 New release

* `rolldown-notify-types`: 2.0.0 -> 2.0.1 (✓ API compatible changes)
* `rolldown-notify`: 8.2.0 -> 8.2.1 (✓ API compatible changes)
* `rolldown-file-id`: 0.2.3 -> 0.2.4 (✓ API compatible changes)
* `rolldown-notify-debouncer-full`: 0.6.0 -> 0.6.1 (✓ API compatible
changes)
* `rolldown-notify-debouncer-mini`: 0.7.0 -> 0.7.1

<details><summary><i><b>Changelog</b></i></summary><p>

## `rolldown-notify-types`

<blockquote>

##
[2.0.1](rolldown-notify-types-v2.0.0...rolldown-notify-types-v2.0.1)
- 2025-11-16

### Other

- update rust toolchain to 1.90.0
</blockquote>

## `rolldown-notify`

<blockquote>

##
[8.2.1](rolldown-notify-v8.2.0...rolldown-notify-v8.2.1)
- 2025-11-16

### Fixed

- emit `remove` event if add watch fails due to non-existing path for
kqueue watcher ([#6](#6))
- throw fsevents stream start error properly
([#4](#4))

### Other

- add kqueue tests ([#5](#5))
- reuse the same `ReadDirectoryChangesW` handle for watching a file in
the same directory ([#3](#3))
- migrate to rust edition 2024
([#2](#2))
- add benchmark for .paths_mut
([#1](#1))
- fix test failure with macOS kqueue
- add test helpers and tests
([notify-rs#728](https://github.com/rolldown/notify/pull/728))
- `FsEventWatcher` crashes when dealing with empty path
([notify-rs#718](https://github.com/rolldown/notify/pull/718))
- update rust toolchain to 1.90.0
</blockquote>

## `rolldown-file-id`

<blockquote>

##
[0.2.4](rolldown-file-id-v0.2.3...rolldown-file-id-v0.2.4)
- 2025-11-16

### Other

- migrate to rust edition 2024
([#2](#2))
</blockquote>

## `rolldown-notify-debouncer-full`

<blockquote>

##
[0.6.1](rolldown-notify-debouncer-full-v0.6.0...rolldown-notify-debouncer-full-v0.6.1)
- 2025-11-16

### Other

- migrate to rust edition 2024
([#2](#2))
</blockquote>

## `rolldown-notify-debouncer-mini`

<blockquote>

##
[0.7.1](rolldown-notify-debouncer-mini-v0.7.0...rolldown-notify-debouncer-mini-v0.7.1)
- 2025-11-16

### Other

- updated the following local packages: rolldown-notify-types,
rolldown-notify
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
JohnTitor added a commit that referenced this pull request Jan 16, 2026
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.

FsEventWatcher crashes when dealing with empty path

2 participants