for sync profile crash(irmc server)when using tracer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all:

For the sync profile(irmc) of obex, I meet a question when I use phonebook-tracer.c.

Firstly, in the function of irmc_connect, we use phonebook_pull("telecom/pb.vcf", irmc->params,
					phonebook_size_result, irmc, err);

In the callback function of phonebook_size_result, we can get the number of vcards.

If the number of vcards is 0, irmc still use irmc->request = phonebook_pull("telecom/pb.vcf", irmc->params,
						query_result, irmc, &ret); in the function of irmc_open_pb.

If that, the callback function of phonebook_pull is query_result and the number of vcards is 0.

The condition will result in the crash of program if we use tracker.

The reason is that if the number of vcards is 0, params->maxlistcount = 0. And phonebook_pull will search pull_contacts_size again.

Therefore, if the number of vcards is 0 after irmc_connect, we need to do something for avoid the crash when irmc_open_pb, is right?

Any idea or comments for it?

Best regards
Zheng wu

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux