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

Richard Eckart de Castilho commented on UIMA-3142:
--------------------------------------------------

CommonSerDes.isBinaryHeader(DataInputStream) meanwhile checks for the full 
magic number. This appears to have been addressed along with UIMA-4792 or 
before.

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to