Bluehost.com Web Hosting $6.95

parameter value overflow in main.cf

This is a discussion on parameter value overflow in main.cf within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi I noticed that postfix doesn't say a word if value of integer parameter in main.cf is too ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Marcin Gryszkalis
 
Posts: n/a
Default parameter value overflow in main.cf

Hi

I noticed that postfix doesn't say a word if value of integer parameter in
main.cf is too big. The int variable is silently overflowed.
Additionaly - postconf shows oryginal value (the way it's saved in config file).

I noticed the problem when I set mailbox_size_limit to high, but it
can be tested with any int variable:

Eg.
4294967295 = 0xffffffff = -1

I set
debug_peer_level = 4294967297
and reloaded postifx, after that the real value of
the variable is 1 but postconf shows it's 4294967297.

When I set
debug_peer_level = 4294967295
I got message
Feb 3 13:25:39 smb postfix[7817]: fatal: invalid debug_peer_level: -1 (min 1)
(postconf is reporting oryginal value)

It seems that
static int convert_mail_conf_int(const char *name, int *intval)
should be rewritten to check for overflows (possibly use
strtoll instead of sscanf etc.)

I'm not familiar with postfix development rules but I could make a patch.
Where should it be sent to for acceptance?

regards
--
Marcin Gryszkalis
jabber jid:mg@chrome.pl
gg:2532994
http://fork.pl
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0