Search Criteria
Package Details: ike 2.2.1-10
Package Actions
| Git Clone URL: | https://aur.archlinux.org/ike.git (read-only, click to copy) |
|---|---|
| Package Base: | ike |
| Description: | Shrew Soft VPN client for Linux |
| Upstream URL: | http://www.shrew.net |
| Licenses: | BSD |
| Submitter: | tmhedberg |
| Maintainer: | None |
| Last Packager: | rockybulwinkle |
| Votes: | 27 |
| Popularity: | 0.000000 |
| First Submitted: | 2011-12-06 17:01 (UTC) |
| Last Updated: | 2025-04-17 14:10 (UTC) |
Dependencies (5)
- libedit
- ncurses (ncurses-gitAUR)
- openssl (openssl-gitAUR, openssl-staticAUR, openssl-aegisAUR)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- openldap (openldap-gnutlsAUR) (optional)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 .. 11 Next › Last »
mkurz commented on 2023-03-23 20:50 (UTC)
@rockybulwinkle It works! Great work, thank you very much!
rockybulwinkle commented on 2023-03-23 20:19 (UTC)
Pushed my changes, try them out @murkz
rockybulwinkle commented on 2023-03-23 19:32 (UTC)
@mkurz, I don't see how removing that delete would solve the double free issue. Just below the delete, data_buff is set to the newly allocated memory (new_buff).
I think your changes would hide an already-existing use-after-free bug. If "data_buff" was already freed, and we just copied data out of it, then what the heck did we just copy?
I'm working on my own fix right now. The root cause in my test case (missing configuration data) appears to be in _CONFIG_MANAGER::file_vpn_load. When config.get_ispublic() is true, if sites_all isn't set, then it adds an empty string to the path. That alone isn't a problem, but then it goes to try to add a delimiter to "size-1", which causes an integer overflow. It doesn't appear ins was written to detect this edge case.
The EOF patch looks reasonable.
mkurz commented on 2023-03-23 18:43 (UTC)
@rockybulwinkle Also see https://github.com/dpolitis/shrew.net-vpn-openssl1.1.1/pull/3/files
mkurz commented on 2023-03-23 17:43 (UTC)
@rockybulwinkle can you please apply the patches in my previous two comments? Thanks!
mkurz commented on 2023-03-23 17:38 (UTC)
Another fix is necessary to make ikec run on arm (aarch64): We should not compare unsigned chars to EOF (-1), so here the fix is to avoid casting the return value of fgetc, otherwise the config will not be loaded correctly.
The exactly same problem happened here: https://bugs.webkit.org/show_bug.cgi?id=144439
Here is the patch:
mkurz commented on 2023-03-23 17:34 (UTC)
When running ikec on arm (aarch64) you run into "double free or corruption". The "double free or corruption" error occurs when memory is freed twice or when memory is freed that was not previously allocated. In libidb.cpp, it seems that the data_buff pointer is being freed twice: once in the grow method and again in the ~_BDATA destructor.
To fix that we can just don't try to free the memory in the grow method. Here is the patch:
rockybulwinkle commented on 2022-11-08 21:06 (UTC)
Thanks manuelino. I think your approach may be better. I'll have to take a closer look tonight. Generally, disabling compiler warnings like I did is more of a "bandaid" than a "fix".
manuelino commented on 2022-11-08 20:52 (UTC)
Dumped to pastebin.
https://pastebin.com/hnPzUS6z
manuelino commented on 2022-11-08 20:49 (UTC)
Aaaand... I messed up the Markdown formatting.
« First ‹ Previous 1 2 3 4 5 6 7 .. 11 Next › Last »