diff options
author | Baptiste Jonglez <baptiste@jonglez.org> | 2012-01-06 23:49:51 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-01-07 12:30:56 +0100 |
commit | 71e05b1dcf8a2ae47d59af8ab6e976a900ab9dc2 (patch) | |
tree | 513b4d8f951f9a3d6020180371b6183dcec1beaf /%2525252525253fid%2525252525253d7a230fa76a5a0f5ada7b6afd2c42b2f99a549569%25252525253fid%25252525253da79a33e8f4da016e4ae42b061db8400337d5a580%252525253fid%252525253d5dc443fc3d236fc2520df58495e62f197a98a64f%2525253fid%2525253d5dc443fc3d236fc2520df58495e62f197a98a64f%25253fid%25253d5dc443fc3d236fc2520df58495e62f197a98a64f%253fid%253d7850f6ddf118abdb6e494b1c240776227d65cf54%3fid%3d71e05b1dcf8a2ae47d59af8ab6e976a900ab9dc2?id=71e05b1dcf8a2ae47d59af8ab6e976a900ab9dc2 | |
parent | af9bdd018a98582edf8c3cb538ebf716a25a9df5 (diff) |
src/apoint.c: Fix a length bug introduced by new duration format
Commit 4ff3bb9d introduced a new format for parsing durations, thus
allowing a larger string to be retrieved from user input.
However, the string used is still declared with the old length,
leading to crashes when compiling with stack-smashing protection
features (the default on Archlinux). Inputting a duration string of
more than 8 characters (such as "+1d11h11m") would crash calcurse with
a *** stack smashing detected *** message.
Using a larger string from the start fixes the bug.
Signed-off-by: Baptiste Jonglez <baptiste@jonglez.org>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to '%2525252525253fid%2525252525253d7a230fa76a5a0f5ada7b6afd2c42b2f99a549569%25252525253fid%25252525253da79a33e8f4da016e4ae42b061db8400337d5a580%252525253fid%252525253d5dc443fc3d236fc2520df58495e62f197a98a64f%2525253fid%2525253d5dc443fc3d236fc2520df58495e62f197a98a64f%25253fid%25253d5dc443fc3d236fc2520df58495e62f197a98a64f%253fid%253d7850f6ddf118abdb6e494b1c240776227d65cf54%3fid%3d71e05b1dcf8a2ae47d59af8ab6e976a900ab9dc2?id=71e05b1dcf8a2ae47d59af8ab6e976a900ab9dc2')
0 files changed, 0 insertions, 0 deletions