Project

General

Profile

Bug #329

[PATCH]Too many recipient lists (1000+ to_list) result in incomplete display

Added by shang xiudong over 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
LibSylph
Target version:
-
Start date:
11/23/2020
Due date:
% Done:

0%

Estimated time:

Description

When there are too many recipient lists, the original code uses a fixed-length buf to store the recipient's information. This results in that when there are too many recipients, the part that exceeds the capacity will not be stored. I used the method of dynamically applying for memory, applying for memory based on the actual size of the message header, avoiding the problem of incomplete display of recipient lists.


Files

sylpheed.patch (2.27 KB) sylpheed.patch use shell: diff -c [old.c] [new.c] > sylpheed.patch shang xiudong, 11/23/2020 05:05 PM
#1

Updated by shang xiudong over 1 year ago

Steps to reproduce the problem: Send an email with 1000+ recipients. Use the sylpheed client to receive the email. The recipient information at the bottom of the list will not be displayed
Solution: At first, use buf with a fixed memory size to receive the list information. If the size of strlen(buf) found has reached the volume of buf, then release the memory, reapply for 2 times the memory size, and restore the FILE pointer to the initial position. Re-read, and so on, until the size of the string in the buf is smaller than the requested memory.

#2

Updated by Fritsch Peyton over 1 year ago

shang xiudong wrote:

When there are too many recipient lists, the original code uses a fixed-length buf to store the recipient's information. This results in that when there are too many recipients, the part that exceeds the capacity will not be stored. I used the method of dynamically applying for memory, applying for memory based on the actual size of the message header, avoiding the problem of incomplete display of recipient lists.

I will try to figure it out for more. Keep sharing such informative post keep suggesting such post.

https://www.mybpcreditcard.review/

#3

Updated by replica watches 5 months ago

https://www.bestwatchaaa.com/Alain-Silberstein-replica.html https://www.replicawatchsshop.cc/Baume-Mercier-Replica.html https://www.bestwatchaaa.com/Baume-Mercier-replica.html https://www.bestwatchaaa.com/Zenith-replica.html & https://www.bestwatchss.com/Rolex-Replica-Watches.html https://www.bestwatchaaa.com/Alain-Silberstein-replica.html https://www.bestwatchss.com/Bell-Ross-Replica-Watches.html https://www.allshopwatch.com/Omega-a-hot.html https://www.bestwatchaaa.com/Blancpain-replica.html https://www.replicawatchsshop.cc/Ulysse-Nardin-Replica.html https://www.allshopwatch.com/Tudor-a-hot.html hottest https://www.allshopwatch.com/Chopard-a-hot.html https://www.replicawatchsshop.cc/Tissot-Replica.html https://www.newwatchesale.com/ design https://www.hotwatchsreplica.com/Rado.html https://www.hotwatchsreplica.com/Hermes.html https://www.hotwatchsreplica.com/emporio-armani.html website. https://www.bestwatchaaa.com/Hublot-replica.html https://www.bestwatchss.com/Breguet-Replica-Watches.html https://www.allshopwatch.com/Vacheron-Constantin-a-hot.html & https://www.allshopwatch.com/Bulgari-a-hot.html watches https://www.allshopwatch.com/Glashutte-a-hot.html https://www.luxuryshopwatch.com/ https://www.bestwatchaaa.com/Jacob-Co.-replica.html https://www.bestwatchaaa.com/Bell-Ross-replica.html https://www.replicawatchsshop.cc/Patek-Philippe-Replica.html https://www.allshopwatch.com/Tissot-a-hot.html the https://www.bestwatchss.com/Corum-Replica-Watches.html https://www.bestwatchaaa.com/Ulysse-Nardin-replica.html in https://www.bestwatchaaa.com/Glashutte-Original-replica.html world. https://www.bestwatchaaa.com/TW-Steel-replica.html https://www.allshopwatch.com/Movado-a-hot.html https://www.replicawatchsshop.cc/ https://www.hotwatchsreplica.com/girard-perregaux.html https://www.allshopwatch.com/Certified%20Pre-Owned-a-hot.html https://www.bestwatchss.com/U-Boat-Replica-Watches.html https://www.hotwatchsreplica.com/Raymond-Weil.html https://www.allshopwatch.com/ the real ones.

Also available in: Atom PDF