Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nersuite_gtagger crash on very long token #28

Open
spyysalo opened this issue Feb 6, 2015 · 0 comments
Open

nersuite_gtagger crash on very long token #28

spyysalo opened this issue Feb 6, 2015 · 0 comments
Assignees
Labels

Comments

@spyysalo
Copy link
Member

spyysalo commented Feb 6, 2015

Due to preprocessing error, a document contained the line

MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaadaqadaqaaiabigdaXiabgUcaRmaalaaabaacciGae8xYdCNaeuiLdqKaem4CamhabaGaeuiLdqKaemiDaq3aaSbaaSqaaiabdAgaMbqabaaaaaGccaGLOaGaayzkaaGaemivaq1aa0baaSqaaiabdQgaQbqaaiabd6gaUjabgUcaRiabigdaXaaakmaabmaabaGaemiDaq3aaSbaaSqaaiabd6eaonaaBaaameaacqWG0baDcqWGPbqAcqWGTbqBcqWGLbqzcqWGZbWCaeqaaaWcbeaaaOGaayjkaiaawMcaaiabgkHiTmaalaaabaGae8xYdCNaeuiLdqKaem4CamhabaGaeuiLdqKaemiDaq3aaSbaaSqaaiabdAgaMbqabaaaaOGaemivaq1aa0baaSqaaiabdQgaQbqaaiabd6gaUjabgUcaRiabigdaXaaakmaabmaabaGaemiDaq3aaSbaaSqaaiabd6eaonaaBaaameaacqWG0baDcqWGPbqAcqWGTbqBcqWGLbqzcqWGZbWCaeqaaSGaeyOeI0IaeGymaedabeaaaOGaayjkaiaawMcaaiabg2da9iabgkHiTiabfs5aejabdohaZnaalaaabaGaeyOaIyRaemyraueabaGaeyOaIyRaemivaq1aa0baaSqaaiabdQgaQbqaaiabd6gaUbaakmaabmaabaGaemiDaq3aaSbaaSqaaiabd6eaonaaBaaameaacqWG0baDcqWGPbqAcqWGTbqBcqWGLbqzcqWGZbWCaeqaaaWcbeaaaOGaayjkaiaawMcaaaaacqGHRaWkcqWGubavdaqhaaWcbaGaemOAaOgabaGaemOBa4gaaOWaaeWaaeaacqWG0baDdaWgaaWcbaGaemOta40aaSbaaWqaaiabdsfaujabdAeagbqabaaaleqaaaGccaGLOaGaayzkaaGaeiOla4IaaCzcaiaaxMaadaqadaqaaiabbgeabjabc6caUiabigdaXiabicdaWaGaayjkaiaawMcaaaaa@93A9@

That contains a sequence of 1078 alnum characters.

When attempting to tag this, nersuite_gtagger crashed with a buffer overflow on the invocation of bidir_postag in run.gtagger.cpp.

The input is obviously broken, but nersuite should at least fail gracefully in cases like this, not just crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants