Wireshark-dev: Re: [Wireshark-dev] Alternatives to atoi and tolower
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Fri, 7 Jul 2017 12:15:18 +0200


On Fri, Jul 7, 2017 at 10:52 AM, Roland Knall <rknall@xxxxxxxxx> wrote:
More generic answer, please always take a look in wsutil and glib documentation for things like that. Those functions are usually accepted (with a few exceptions in glib I think).
May be we can add a chapter on README.dev about this ?

cheers
Roland

On Fri, Jul 7, 2017 at 10:08 AM, Pascal Quantin <pascal.quantin@xxxxxxxxx> wrote:
Hi Paul,

2017-07-07 10:03 GMT+02:00 Paul Offord <Paul.Offord@xxxxxxxxxxxx>:

Hi,

A petri dish run against code I submitted failed with:

 

Error: Found prohibited APIs in plugins/syncro/packet-syncro.c: atoi,sprintf

Error: Found prohibited APIs in plugins/syncro/syncroparser.c: tolower

 

The sprint thing was an oversight on my part.  What should I use instead of atoi and tolower?


ws_strtoi(8|16|32|64) functions and g_ascii_tolower
 

 

Thanks and regards…Paul

 

PS:  Watch this short video to discover how we help businesses, public bodies and service providers to solve IT performance and stability issues.

 

Paul Offord FBCS CITP

Chief Technical Officer

Advance7

 

Phone:  01279 211 668

Mobile:  07764 931 431

Email:  paul.offord@xxxxxxxxxxxx

LinkedIn:  https://uk.linkedin.com/in/paulofford

 


______________________________________________________________________

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe