[packagekit] Endless loop in pk_backend_check_newlines(...)

Stefan Haas shaas at suse.de
Thu Feb 28 08:05:15 PST 2008


Hi,

I've just figured out that there is an endless loop in
pk_backend_check_newlines().

If there is an old paragraph separator (;;) or a double space in the
text to check pk_backend_message(...) will be called with the text as a
parameter. But pk_backend_message() itself also calls
pk_backend_check_newline() with the text as a parameter and the endless
loop  starts ....

Should the '%s' be removed in the call of pk_backend_message() or would
you prefer not to call pk_backend_check_newlines() out of
pk_backend_message()?

Regards,

Stefan

-- 
Stefan Haas <shaas at suse.de>              SUSE Linux Products GmbH 
Research & Development                   Maxfeldstr. 5
GF: Markus Rex, HRB 16746 (AG Nürnberg)  D-90409 Nürnberg






More information about the PackageKit mailing list