Comments (6)
Hi @fretn.
Could you give more details? For instance, what type of "garbage" characters?
tail -n 4 /etc/resolv.conf | hexdump -C
from openfortivpn.
Hi @adrienverge
[frlae@modimo openfortivpn]$ tail -n 1 /etc/resolv.conf | hexdump -C
00000000 11 04 02 0a |....|
00000004
from openfortivpn.
I'm currently testing it on ubuntu 14.04
but I discovered it on my OS X port, first I thought it was an OS X glitch.
when I print out the buffer (in ipv4_add_nameservers_to_resolv_conf) after the fread call, I already see the garbage characters
from openfortivpn.
ipv4.c line 398: log_debug("%zu : %zu\n", stat.st_size, malloc_usable_size(buffer));
this outputs:
DEBUG: 252 : 264
there is more allocated than requested, this explains where the garbage comes from
from openfortivpn.
Thanks for debugging!
Actually this bug is probably due to the fputs
on line 438, that assumes the file content is null-terminated (which is not always the case). Can you check if #47 solves this?
from openfortivpn.
PR #47 fixes this problem on both linux and mac, thx !
from openfortivpn.
Related Issues (20)
- Using openvpn breaks openfortivpn HOT 3
- Invalid session ID error when trying to connect from a different network HOT 5
- Use private key file from Windows?
- macOS 14.2.1 and 1.21.0 blocks HOT 5
- modify firewall HOT 3
- connecting with @ in username and context in host HOT 3
- Empty cookie error after server upgrade from 7.2.7 to 7.2.8 HOT 10
- "Error writing to SSL connection" on FreeBSD HOT 1
- 405 Method Not Allowed HOT 1
- openfortivpn on MAC gets stuck HOT 6
- openfortivpn version 1.22.0
- Wrong value in the 'Accept-Encoding' header HOT 2
- openfortivpn version 1.22.1
- IPCP terminated by peer (conflicting remote IP address) HOT 8
- Explain OTP Flag HOT 1
- v1.20.3 on OpenWRT - Hughes Internet HOT 9
- Older macOS do not provide `vdprintf`: `Undefined symbols: "_vdprintf"` HOT 11
- openfortivpn 1.3.0 not working on ubuntu 24.04 HOT 1
- ERROR: SSL_connect: error:0A000126:SSL routines::unexpected eof while reading, Error happen randomly HOT 7
- Possibly caching issue ? pppd-ipparam
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfortivpn.