I dont' see any explicit checking that you've not overflowed dir[256]
in ErrorState::BuildContent(), nor are you \0 terminating it?
But you're doing blocking IO when generating error pages?
Adrian
2008/7/22 Amos Jeffries <squid3_at_treenet.co.nz>:
> Languages: Error page auto-negotiation
>
> The error pages component has finally passed testing with good results. This
> patch bundles the entire code set to be updated.
>
> * Enables default-on but optional 'make dist' translation of .po files
> into error page templates. This adds dependency on po2html tool.
>
> * Installs and uninstalls translated templates properly if present.
> Absence of any dynamic translation files is non-fatal.
>
> * Upgrades the ErrorState object from a dumb data-carrier to a class
> handling several aspects of its own content.
>
> * The major aspect of the above is locating and producing output
> based on the request accept-language specs. This allows automatic
> localization of the message to the user/visitors own language.
>
> * Changes the error_directory squid.conf setting to a fully
> optional value, and to act as a per-squid override of the
> language localization. So as to remain backwards-compatible
> with any existing error customizations.
>
> * Currently requires --enable-auto-locale to enable actual
> auto-negotiation sequences on each error result. This will remain optional
> until enough translations have been completed to consider turning this
> behavior on useful.
>
> * Adds the error_default_language setting to squid.conf
> which changes the basic default language from English to
> some local variant. But only if auto-selection fails.
>
> * Legacy blanket translations shipped with squid are now to be
> deprecated in favor of ISO 639 and ISO 3166 coded versions as
> the translations arrive.
>
>
> Amos
> --
> Please use Squid 2.7.STABLE3 or 3.0.STABLE8
>
Received on Mon Jul 21 2008 - 17:34:12 MDT
This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 12:00:06 MDT