Prey: Anti-theft - Track

Camel1965

Bardzo aktywny
Zasłużony
Dołączył
8 Wrzesień 2010
Posty
55112
Reakcje/Polubienia
40687

Prey 1.13.38

  • Fix: Fixed a crash on macOS where permissionFile.getData() could return a raw boolean (written by the mac native location helper without string coercion) instead of the expected string, causing an uncaught .localeCompare is not a function TypeError. permissionfile.js now normalizes on read and write so already-corrupted SQLite data self-heals; listeners.js comparisons and the mac branch's error handling are also hardened as defense in depth. (
    Zaloguj lub Zarejestruj się aby zobaczyć!
    )
  • Fix: Fixed two startup crashes on Windows: countLinesLoggerRestarts now wraps its file read in a try-catch to prevent an uncaught EPERM when prey_restarts.log is locked or has missing permissions; the storage_fns.set check-then-insert pattern is replaced with a single INSERT OR REPLACE to eliminate the TOCTOU race that produced "Already registered" errors for preyconf and shouldPreyCFile during concurrent agent initialization. (
    Zaloguj lub Zarejestruj się aby zobaczyć!
    )
  • Fix: Fixed a TypeError crash when daemon.set_watcher is invoked through the CLI run helper: run always calls commands as command(values, cb), but set_watcher only accepts (cb), so the parsed CLI values object landed in the callback slot. Because the object is truthy, the !cb guard was bypassed and the object propagated through the full call chain, crashing as "done/cb is not a function" at the upgrade and fresh-install paths in prey_owl.js. The CLI registration now wraps the call to forward only the real callback. Callback guards in prey_owl.js are also standardised from cb && cb(...) to typeof cb === 'function' && cb(...) for consistency. (
    Zaloguj lub Zarejestruj się aby zobaczyć!
    )
  • Fix: Fixed a double-callback crash in the macOS geo location socket layer: tryToSendNew could fire cbAttached on already-completed messages, causing a second callback invocation after the socket response was processed. The optional time parameter is now forwarded through writeMessage to addAndWait so callers can override the default 7 s timeout (the darwin provider passes 65 s). A null guard on inFlightCallbacks in callSocket is added as defense in depth. (
    Zaloguj lub Zarejestruj się aby zobaczyć!
    )
Zaloguj lub Zarejestruj się aby zobaczyć!
 
Do góry