uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-3142) CASImpl.reinit doesn't properly check magic number
Date Mon, 05 Aug 2013 15:04:50 GMT

    [ https://issues.apache.org/jira/browse/UIMA-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729557#comment-13729557
] 

Marshall Schor commented on UIMA-3142:
--------------------------------------

There is some other code that does this same reading / writing - maybe could be refactored...
both would need updating.
Deferring past 2.4.2 as there's some small chance that introducing this will break backwards
compatibility.
                
> CASImpl.reinit doesn't properly check magic number
> --------------------------------------------------
>
>                 Key: UIMA-3142
>                 URL: https://issues.apache.org/jira/browse/UIMA-3142
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Richard Eckart de Castilho
>            Priority: Minor
>
> Binary CASes have a magic number at the beginning of the file/stream: "UIMA". Currently,
this information is only used to check the byte order (first byte is checked for being U).
> CASImpl should also check if the other bytes of the magic number are correct and if not,
it should throw an exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message