OSDN Git Service

Fix crashes with lots of discovered LE devices
authorMarie Janssen <jamuraa@google.com>
Wed, 9 Dec 2015 18:08:25 +0000 (10:08 -0800)
committerMarie Janssen <jamuraa@google.com>
Wed, 30 Dec 2015 21:29:27 +0000 (13:29 -0800)
commita8ace3826b05d1ade5beb5ef2ba4dfd8d9cf98b6
treea1ea616741b08bd9ff11b25ecd382b171038845b
parentbef34921ee313f8378059d3205ebb485498b3404
Fix crashes with lots of discovered LE devices

When loads of devices are discovered a config file which is too large
can be written out, which causes the BT daemon to crash on startup.

This limits the number of config entries for unpaired devices which
are initialized, and prevents a large number from being saved to the
filesystem.

Bug: 26071376
Change-Id: I4a74094f57a82b17f94e99a819974b8bc8082184
(cherry picked from commit d77f1999ecece56c1cbb333f4ddc26f0b5bac2c5)
btif/src/btif_config.c