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>
Thu, 10 Dec 2015 01:26:43 +0000 (01:26 +0000)
commitd77f1999ecece56c1cbb333f4ddc26f0b5bac2c5
treeb4902b8ba82ee98c28878ab62dff092858081560
parentade7583ddd1877d25d3605be111319e5d8d760e4
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
btif/src/btif_config.c