Comments (4)
Hi,
it seems you have a malformed hep packet and reached this line
chunkBody := hepChunk[6:chunkLength]
I thought I have enough checks that this case never occurs but it seems I must have missed one case. Lets go through my checks.
- First I check if the packetlength is the same like the heplength this is how it looks like in code:
if int(length) != len(packet) {
return fmt.Errorf("HEP packet length is %d but should be %d", len(packet), length)
}
- For every chunck I check if the chuncklength isn't greater than the remaining hepChunks:
if len(hepChunk) < int(chunkLength) {
return fmt.Errorf("HEP chunk overflow %d > %d", chunkLength, len(hepChunk))
}
- You get to following line and heplify-server crashes:
chunkBody := hepChunk[6:chunkLength]
Since chunkLength couldn't be greater than hepChunk due to the 2. check this means chunkLength is < 6
So I will change the 2. check to
if len(hepChunk) < int(chunkLength) || int(chunkLength) < 6 {
return fmt.Errorf("HEP chunkLength is wrong %d len hepChunk %d", chunkLength, len(hepChunk))
}
from heplify-server.
I will release today or mby tomorrow a new release with the fix. When you use heplify as hep client you can avoid hep and use protobuf. Simply run heplify with -protobuf flag
from heplify-server.
Latest release has a stronger hep validation and should catch your corner case.
https://github.com/sipcapture/heplify-server/releases
from heplify-server.
If you still have issues feel free to reopen.
from heplify-server.
Related Issues (20)
- Missing src_id, dst_id, ID labels HOT 4
- DB Error - could not map dynamic shared memory segment HOT 7
- Duplication with 'Dedup' set to 'true' HOT 4
- Prometheus metrics HOT 5
- [FEATURE REQ] multiple sockets listening at same hep udp port: setting "so_reuseport" in udp.go HOT 1
- Heplify-server não apresenta os dados HOT 31
- Prometheus was not accessed on installation and access is denied http and telnet on port 9090 HOT 1
- heplify-server resets TCP connection HOT 4
- Certificate with only 'Digital Signature' Key Usage not accepted
- Add subnet to PromTargetIP HOT 2
- ISUP multipart encoding issue HOT 8
- correlation id lost when pushing to loki HOT 1
- timestamp of hep packets discarded in loki
- Configure Multiply connections
- Multiple instances cause rotator to get stuck HOT 2
- image for release v1.59.7 not yet available on ghcr HOT 3
- heplify-server's DB health monitoring HOT 4
- Provide an entrypoint for docker image HOT 2
- Management of homer DB size HOT 2
- Label for host separation per request
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 heplify-server.