safing-portmaster/service
Alexandr Stelnykovych 6c014d227c [fix] Panic while accessing SleepyTicker methods Stop()/SetSleep()
The time.Ticker object was stored as a value type, but it is expected to be a pointer according to its implementation:
```
func (t *Ticker) Stop()
func (t *Ticker) Reset(d Duration)
```

This was leading to an application crash.

STR 1:
Run `portmaster-core` without privileged rights. It will not be able to start the kernel driver (Windows).
During unloading of already initialized modules, the process crashes because of stopping SleepyTicker instances in workers of the "network" module.

STR 2:
Run tests from `service\mgr\sleepyticker_test.go`
2024-12-17 15:49:52 +02:00
..
broadcasts Restructure modules () 2024-08-09 18:15:48 +03:00
compat Feature/systemd query events () 2024-11-27 17:10:47 +02:00
core [service] Add worker info system 2024-08-27 16:32:23 +02:00
detection/dga wip: migrate to mono-repo. SPN has already been moved to spn/ 2024-03-20 09:45:32 +01:00
firewall [service] Fix error on unitilized dns monitor 2024-12-02 15:25:58 +02:00
integration [service] Fix error on unitilized dns monitor 2024-12-02 15:25:58 +02:00
intel [service] Do not warn when custom filter lists are not configured 2024-08-23 10:18:26 +02:00
mgr [fix] Panic while accessing SleepyTicker methods Stop()/SetSleep() 2024-12-17 15:49:52 +02:00
nameserver Make saving IP and CNAMEs more defensive 2024-11-12 15:13:44 +01:00
netenv [service] Deactivate android interface code for now 2024-08-21 15:00:52 +02:00
netquery Restructure modules () 2024-08-09 18:15:48 +03:00
network [service] Fix error on unitilized dns monitor 2024-12-02 15:25:58 +02:00
process Warn instead of failing when process username cannot be found 2024-11-12 15:10:41 +01:00
profile [service] Fix startup race condition 2024-08-28 11:52:45 +02:00
resolver Feature/systemd query events () 2024-11-27 17:10:47 +02:00
status Restructure modules () 2024-08-09 18:15:48 +03:00
sync Restructure modules () 2024-08-09 18:15:48 +03:00
ui Restructure modules () 2024-08-09 18:15:48 +03:00
updates Define identifier for portmaster-core.dll and make it mandatory 2024-11-28 11:45:29 +01:00
config.go Restructure modules () 2024-08-09 18:15:48 +03:00
debug.go [service] Add worker info system 2024-08-27 16:32:23 +02:00
debug_test.go [service] Make linter happy 2024-08-28 11:55:40 +02:00
instance.go Feature/systemd query events () 2024-11-27 17:10:47 +02:00