Opened 5 years ago

Last modified 3 years ago

#1397 closed defect

FilterEngine::ForceUpdateCheck crashes when passed a 0 std::function — at Version 5

Reported by: fhd Assignee: sergz
Priority: P2 Milestone:
Module: Libadblockplus Keywords:
Cc: asmirnov Blocked By:
Blocking: Platform: Unknown
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29389580/

Description (last modified by fhd)

Environment

libadblockplus revision f6d33ae55666.

How to reproduce

With a working FilterEngine instance, simply call:

filterEngine->ForceUpdateCheck();

Observed behaviour

The JS code in lib/updater.js tries to invoke the native callback, causing a crash.

Expected behaviour

The update check should finish normally.

As a workaround, create a no-op function and pass that one. (While fixing this, we should remove these workarounds from the test code.)

Change History (5)

comment:1 Changed 5 years ago by fhd

  • Description modified (diff)

comment:2 Changed 5 years ago by fhd

  • Description modified (diff)

comment:3 Changed 5 years ago by fhd

  • Component changed from Unknown to Libadblockplus
  • Priority changed from Unknown to P3
  • Ready set

comment:4 Changed 3 years ago by sergz

  • Cc asmirnov added
  • Owner set to sergz
  • Priority changed from P3 to P2
  • Tester set to Unknown

There was a duplicate #5016.

comment:5 Changed 3 years ago by sergz

  • Review URL(s) modified (diff)
Note: See TracTickets for help on using tickets.