Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

[PATCH] fix segfault when running with $HOME unset

#273

When libimobiledevice is running in environment without $XDG_CONFIG_HOME and $HOME set, segfault happens at src/userpref.c:128 in function userpref_get_config_dir() when calling strcpy(), because variable cdir is set to NULL and strcpy() tries to read from NULL.

For example, this situation happens when upowerd starts at boot if iPod touch is plugged into computer. Upowerd runs with clean environment and crashes in libimobiledevice when coldplugs iPod.

I propose attached patch to fix this bug.

Reported by Maxim Mikityanskiy · June 4th, 2012 @ 02:29 PM

State: duplicate
Milestone: 1.2.0 Release
Assigned to: Martin S. Martin S.

Activity

  1. Samuli Suominen
  2. Martin S.
    Martin S.
    • State changed from new to duplicate
    • Assigned user set to Martin S.
    • Milestone set to 1.2.0 Release
    • Milestone order changed from 190966 to 0

    September 5th, 2012 @ 12:17 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.